From 71288d0203d26de0d0c7add3a4826491e9b17d1f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 16:30:19 -0600 Subject: [PATCH] death in safe zone no longer causes item damage --- src/engine/objects/CharacterItemManager.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 964e97ef..f70a3034 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -12,10 +12,7 @@ package engine.objects; import engine.Enum; import engine.Enum.GameObjectType; import engine.Enum.ItemType; -import engine.gameManager.BuildingManager; -import engine.gameManager.ChatManager; -import engine.gameManager.ConfigManager; -import engine.gameManager.DbManager; +import engine.gameManager.*; import engine.math.Vector3fImmutable; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -2435,6 +2432,10 @@ public class CharacterItemManager { if (item == null || amount < 1 || amount > 5) return; + //dont damage items when dieing in safezone + if(ZoneManager.findSmallestZone(this.absCharacter.getLoc()).getSafeZone() == 0) + return; + //verify the item is equipped by this player int slot = item.getEquipSlot(); if (!this.equipped.containsKey(slot))