delete stronghold mobs form DB when finished
This commit is contained in:
1 parent
99ad6f3712
commit
d6239de6fd
1 file changed
+6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user