Browse Source

delete stronghold mobs form DB when finished

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
d6239de6fd
  1. 6
      src/engine/objects/Mob.java

6
src/engine/objects/Mob.java

@ -290,6 +290,12 @@ public class Mob extends AbstractIntelligenceAgent { @@ -290,6 +290,12 @@ public class Mob extends AbstractIntelligenceAgent {
Logger.error("Mobile:" + this.dbID + ": " + e);
}
if(this.firstName.toLowerCase().equals("guardian commander") || this.firstName.toLowerCase().equals("elite guardian")){
this.despawn();
this.removeFromCache();
DbManager.MobQueries.DELETE_MOB(this);
}
}
public static void serializeMobForClientMsgOtherPlayer(Mob mob, ByteBufferWriter writer) throws SerializationException {

Loading…
Cancel
Save