Browse Source

update map when bane set

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
80812cb402
  1. 5
      src/engine/objects/Bane.java

5
src/engine/objects/Bane.java

@ -304,7 +304,7 @@ public final class Bane { @@ -304,7 +304,7 @@ 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);
@ -312,6 +312,9 @@ public final class Bane { @@ -312,6 +312,9 @@ public final class Bane {
cityDataMsg.updateCities(true);
Dispatch dispatch = Dispatch.borrow(playerCharacter, cityDataMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
}
}catch(Exception e){
}
}

Loading…
Cancel
Save