|
|
@ -766,8 +766,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { |
|
|
|
cityObjectMap.put(gameObject.getObjectType(), gameObject); |
|
|
|
cityObjectMap.put(gameObject.getObjectType(), gameObject); |
|
|
|
|
|
|
|
|
|
|
|
treeObject = (Building) cityObjectMap.get(GameObjectType.Building); |
|
|
|
treeObject = (Building) cityObjectMap.get(GameObjectType.Building); |
|
|
|
treeObject.runAfterLoad(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cityObject = (City) cityObjectMap.get(GameObjectType.City); |
|
|
|
cityObject = (City) cityObjectMap.get(GameObjectType.City); |
|
|
|
zoneObject = (Zone) cityObjectMap.get(GameObjectType.Zone); |
|
|
|
zoneObject = (Zone) cityObjectMap.get(GameObjectType.Zone); |
|
|
|
|
|
|
|
|
|
|
@ -799,6 +797,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
City.lastCityUpdate = System.currentTimeMillis(); |
|
|
|
City.lastCityUpdate = System.currentTimeMillis(); |
|
|
|
treeObject.setLoc(treeObject.getLoc()); |
|
|
|
treeObject.setLoc(treeObject.getLoc()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// As this is a new static object set it's dirtyFlag
|
|
|
|
|
|
|
|
// so players already near it will have the object loaded.
|
|
|
|
|
|
|
|
|
|
|
|
InterestManager.setObjectDirty(treeObject); |
|
|
|
InterestManager.setObjectDirty(treeObject); |
|
|
|
|
|
|
|
|
|
|
|
serverRealm.addCity(cityObject.getObjectUUID()); |
|
|
|
serverRealm.addCity(cityObject.getObjectUUID()); |
|
|
|