mob equipment takes damage upon death
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user