Browse Source

dead pets removed form seafloor zonemobset

master
FatBoy-DOTC 1 year ago
parent
commit
8c1b237720
  1. 3
      src/engine/ai/MobileFSM.java

3
src/engine/ai/MobileFSM.java

@ -335,7 +335,10 @@ public class MobileFSM {
//pet cleanup for errant pets //pet cleanup for errant pets
if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.Pet1.ordinal() && mob.getOwner() == null && mob.isSiege() == false){ if(mob.BehaviourType.ordinal() == Enum.MobBehaviourType.Pet1.ordinal() && mob.getOwner() == null && mob.isSiege() == false){
mob.despawn(); mob.despawn();
DbManager.removeFromCache(mob);
WorldGrid.removeObject(mob); WorldGrid.removeObject(mob);
ZoneManager.getSeaFloor().zoneMobSet.remove(mob);
return;
} }
if (mob.despawned && mob.getMobBase().getLoadID() == 13171) { if (mob.despawned && mob.getMobBase().getLoadID() == 13171) {
//trebuchet spawn handler //trebuchet spawn handler

Loading…
Cancel
Save