mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Fixed creatures not spawning in buildings/containers
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user