|
|
@ -61,15 +61,6 @@ public class CityDataHandler extends AbstractClientMsgHandler { |
|
|
|
dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); |
|
|
|
dispatch = Dispatch.borrow(playerCharacter, cityDataMsg); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
|
|
|
|
|
|
|
|
// If the hotZone has changed then update the client's map accordingly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (playerCharacter.getTimeStamp("hotzoneupdate") <= ZoneManager.hotZoneLastUpdate.toEpochMilli() && ZoneManager.hotZone != null) { |
|
|
|
|
|
|
|
HotzoneChangeMsg hotzoneChangeMsg = new HotzoneChangeMsg(Enum.GameObjectType.Zone.ordinal(), ZoneManager.hotZone.getObjectUUID()); |
|
|
|
|
|
|
|
dispatch = Dispatch.borrow(playerCharacter, hotzoneChangeMsg); |
|
|
|
|
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
|
|
|
|
playerCharacter.setTimeStamp("hotzoneupdate", System.currentTimeMillis() - 100); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Serialize the realms for this map
|
|
|
|
// Serialize the realms for this map
|
|
|
|
|
|
|
|
|
|
|
|
WorldRealmMsg worldRealmMsg = new WorldRealmMsg(); |
|
|
|
WorldRealmMsg worldRealmMsg = new WorldRealmMsg(); |
|
|
|