delete stronghold mobs form DB when finished

This commit is contained in:
2024-07-08 21:09:21 -05:00
parent 99ad6f3712
commit d6239de6fd
+6
View File
@@ -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 {