diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 40bc83a7..6a80bbc1 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -989,7 +989,7 @@ public enum BuildingManager { // Add building offset and rotation to vertices for (Vector2f vertex : meshEntry) { - vertex.addLocal(building.getLoc().x, building.getLoc().y); + vertex.addLocal(building.getLoc().x, building.getLoc().z); Vector3fImmutable rotatedPoint = new Vector3fImmutable(vertex.x, 0, vertex.y); rotatedPoint = Vector3fImmutable.rotateAroundPoint(building.getLoc(), rotatedPoint, building.getBounds().getQuaternion().angleY); vertex.set(rotatedPoint.x, rotatedPoint.z);