Fixed zoning in to buildings

This commit is contained in:
Obique PSWG
2016-01-07 12:34:39 -06:00
parent 17f4446a81
commit 28ff803385
2 changed files with 21 additions and 15 deletions
+5 -3
View File
@@ -108,16 +108,18 @@ public class ObjectAwareness extends Service {
if (creature == null)
return;
switch (pei.getEvent()) {
case PE_LOGGED_OUT:
creature.setOwner(null);
p.setCreatureObject(null);
break;
case PE_DISAPPEAR:
remove(creature);
for (SWGObject obj : creature.getObservers())
creature.destroyObject(obj.getOwner());
creature.clearAware();
creature.setOwner(null);
p.setCreatureObject(null);
break;
case PE_ZONE_IN:
creature.clearAware();
creature.clearAware(false);
update(creature);
break;
default: