From 8fbbde6d69448a0a955e4958eebac396690da6ed Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 25 Jun 2023 20:25:23 -0400 Subject: [PATCH] bugfix in world height calculation. --- src/engine/net/client/handlers/PlaceAssetMsgHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index 71b172d5..0ac8cf9c 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -507,7 +507,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { } Vector3fImmutable plantLoc = new Vector3fImmutable(treeInfo.getLoc().x, - serverZone.getHeightMap().getInterpolatedTerrainHeight(treeInfo.getLoc()), + HeightMap.getWorldHeight(treeInfo.getLoc()), treeInfo.getLoc().z); cityObjects = DbManager.CityQueries.CREATE_CITY(playerCharacter.getObjectUUID(), serverZone.getObjectUUID(),