From e73f4cbe633c35bfce8542b0684457db7656bca8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 7 May 2023 10:55:27 -0400 Subject: [PATCH] Placement bounds of 1.2% city zone size. --- src/engine/Enum.java | 3 ++- src/engine/gameManager/ZoneManager.java | 2 +- .../client/handlers/PlaceAssetMsgHandler.java | 22 ------------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index dd8e7fff..7097664a 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -2270,7 +2270,8 @@ public class Enum { public enum CityBoundsType { GRID(640), - ZONE(875); + ZONE(875), + PLACEMENT(1050); public final float extents; diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index b2eba4a1..eab3393e 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -407,7 +407,7 @@ public enum ZoneManager { treeBounds = Bounds.borrow(); - treeBounds.setBounds(new Vector2f(positionX, positionZ), new Vector2f(Enum.CityBoundsType.ZONE.extents, Enum.CityBoundsType.ZONE.extents), 0.0f); + treeBounds.setBounds(new Vector2f(positionX, positionZ), new Vector2f(Enum.CityBoundsType.PLACEMENT.extents, Enum.CityBoundsType.PLACEMENT.extents), 0.0f); zoneList = currentZone.getNodes(); diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index 64e85b2e..71b172d5 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -924,28 +924,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); } - // Method deletes one item from the player's inventory - // based on the mesh UUID the deed/seed spawns - - private static void removeDeedByMeshUUID(PlayerCharacter player, int meshUUID) { - - CharacterItemManager inventoryManager; - ArrayList itemList; - - inventoryManager = player.getCharItemManager(); - itemList = player.getInventory(); - - for (Item inventoryItem : itemList) { - if (inventoryItem.getItemBase().getUseID() == meshUUID) { - inventoryManager.delete(inventoryItem); - - inventoryManager.updateInventory(); - return; - } - - } - } - // Method validates the location we have selected for our new city private static boolean validateTreeOfLifePlacement(PlayerCharacter playerCharacter, Realm serverRealm, Zone serverZone,