Added cleanup intent so that creatureobject is not null during PE_DISAPPEAR

This commit is contained in:
Obique PSWG
2016-09-09 09:41:10 -05:00
parent 6b2e94b009
commit 75ceb9987c
4 changed files with 8 additions and 3 deletions
@@ -121,6 +121,8 @@ public class ObjectAwareness extends Service {
switch (pei.getEvent()) {
case PE_DISAPPEAR:
moveToLocation(creature, creature.getParent(), null);
break;
case PE_DESTROYED:
creature.setOwner(null);
break;
case PE_ZONE_IN_SERVER: