From 850d2dfea09c160b6836e242921ac88e51d9ae7e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 2 Apr 2024 20:01:25 -0500 Subject: [PATCH] Nephilim Shrine renames Chaos Shrine --- src/engine/net/client/handlers/PlaceAssetMsgHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index bb2f24f2..972c0b34 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -970,7 +970,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { } // Create the shrine - + return createShrine((PlayerCharacter) cityObject.getTOL().getOwner(), msg.getFirstPlacementInfo(), serverZone); } @@ -1213,7 +1213,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { private boolean createShrine(PlayerCharacter player, PlacementInfo buildingInfo, Zone currentZone) { Blueprint blueprint; - Building newMesh; + Building newMesh = null; Shrine newShrine; City city; ShrineType shrineType; @@ -1274,7 +1274,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { break; } } - + if(blueprint.getName().equals("Nephilim Shrine ") && newMesh != null){ + newMesh.setName("Chaos Shrine"); + } + return true; }