Fixed creatures not spawning in buildings/containers

This commit is contained in:
Obique PSWG
2016-01-06 21:58:18 -06:00
parent f968e0dfc7
commit 261c348beb
4 changed files with 18 additions and 12 deletions
@@ -278,7 +278,19 @@ public class CreatureObject extends TangibleObject {
}
public PlayerObject getPlayerObject() {
return (PlayerObject) (hasSlot("ghost") ? getSlottedObject("ghost") : null);
return (PlayerObject) getSlottedObject("ghost");
}
public boolean isPlayer() {
return getSlottedObject("ghost") != null;
}
public boolean isLoggedInPlayer() {
return getOwner() != null && isPlayer();
}
public boolean isLoggedOutPlayer() {
return getOwner() == null && isPlayer();
}
public void setPosture(Posture posture) {