Fixed LD flag not updating on disconnect

This commit is contained in:
Obique PSWG
2016-01-10 11:56:47 -06:00
parent 0c232c3210
commit 4a6b3bc692
+2 -4
View File
@@ -108,15 +108,13 @@ 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(false);