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))