bane system work
This commit is contained in:
@@ -487,6 +487,16 @@ public final class Bane {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Remove bane commander NPC
|
||||||
|
if(!baneStone.getHirelings().isEmpty()) {
|
||||||
|
NPC npc = (NPC)baneStone.getHirelings().keySet().stream().findFirst().orElse(null);
|
||||||
|
if(npc != null) {
|
||||||
|
DbManager.NPCQueries.DELETE_NPC(npc);
|
||||||
|
DbManager.removeFromCache(npc);
|
||||||
|
WorldGrid.RemoveWorldObject(npc);
|
||||||
|
WorldGrid.removeObject(npc);
|
||||||
|
}
|
||||||
|
}
|
||||||
// Remove object from simulation
|
// Remove object from simulation
|
||||||
|
|
||||||
baneStone.removeFromCache();
|
baneStone.removeFromCache();
|
||||||
|
|||||||
Reference in New Issue
Block a user