Browse Source

bugfix in world height calculation.

master
MagicBot 2 years ago
parent
commit
8fbbde6d69
  1. 2
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

2
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -507,7 +507,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
} }
Vector3fImmutable plantLoc = new Vector3fImmutable(treeInfo.getLoc().x, Vector3fImmutable plantLoc = new Vector3fImmutable(treeInfo.getLoc().x,
serverZone.getHeightMap().getInterpolatedTerrainHeight(treeInfo.getLoc()), HeightMap.getWorldHeight(treeInfo.getLoc()),
treeInfo.getLoc().z); treeInfo.getLoc().z);
cityObjects = DbManager.CityQueries.CREATE_CITY(playerCharacter.getObjectUUID(), serverZone.getObjectUUID(), cityObjects = DbManager.CityQueries.CREATE_CITY(playerCharacter.getObjectUUID(), serverZone.getObjectUUID(),

Loading…
Cancel
Save