mob equipment takes damage upon death

This commit is contained in:
2023-08-04 19:47:21 -05:00
parent 17f099386a
commit 64aef11c56
+1
View File
@@ -368,6 +368,7 @@ public enum LootManager {
if (ml != null) { if (ml != null) {
ml.setIsID(true); ml.setIsID(true);
ml.setDurabilityCurrent((short)(ml.getDurabilityCurrent() - ThreadLocalRandom.current().nextInt(5) + 1));
mob.getCharItemManager().addItemToInventory(ml); mob.getCharItemManager().addItemToInventory(ml);
} }
} }