mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Changed setOwner to also call Player.setCreatureObject
This commit is contained in:
@@ -409,7 +409,11 @@ public abstract class SWGObject extends BaselineObject implements Comparable<SWG
|
||||
}
|
||||
|
||||
public void setOwner(Player player) {
|
||||
if (owner != null)
|
||||
owner.setCreatureObject(null);
|
||||
this.owner = player;
|
||||
if (player != null && this instanceof CreatureObject)
|
||||
player.setCreatureObject((CreatureObject) this);
|
||||
}
|
||||
|
||||
public void setLocation(Location l) {
|
||||
|
||||
Reference in New Issue
Block a user