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
+2 -2
View File
@@ -143,8 +143,8 @@ public class ObjectManager extends Manager {
private void loadObject(SWGObject obj) {
obj.setOwner(null);
// if player is not a player
if (!(obj instanceof CreatureObject && ((CreatureObject) obj).hasSlot("ghost")))
// if creature is not a player
if (!(obj instanceof CreatureObject && ((CreatureObject) obj).isLoggedOutPlayer()))
objectAwareness.add(obj);
if (obj instanceof CreatureObject && ((CreatureObject) obj).getPlayerObject() != null) {
if (!obj.hasSlot("bank")) {