diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index e5d0f509..d41df9ee 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -304,15 +304,18 @@ public final class Bane { InterestManager.setObjectDirty(baneCommander); baneCommander.updateLocation(); +try { + //update map for all players online + for (PlayerCharacter playerCharacter : SessionManager.getAllActivePlayerCharacters()) { + CityDataMsg cityDataMsg = new CityDataMsg(SessionManager.getSession(playerCharacter), false); + cityDataMsg.updateMines(true); + cityDataMsg.updateCities(true); + Dispatch dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); + DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); + } +}catch(Exception e){ - //update map for all players online - for (PlayerCharacter playerCharacter : SessionManager.getAllActivePlayerCharacters()) { - CityDataMsg cityDataMsg = new CityDataMsg(SessionManager.getSession(playerCharacter), false); - cityDataMsg.updateMines(true); - cityDataMsg.updateCities(true); - Dispatch dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); - DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); - } +} } public static Bane getBane(int cityUUID) {