mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-18 14:19:13 +01:00
Push build
This commit is contained in:
parent
d088ca8a7b
commit
cab2a7a362
@ -153,7 +153,7 @@ public class DurabilityItem {
|
||||
durability = Math.max(0, Math.min(durability - loss, maxDurability));
|
||||
|
||||
// When the item breaks
|
||||
if (durability <= 0 && player != null) {
|
||||
if (durability <= 0 && player != null) {
|
||||
player.getWorld().playSound(player.getLocation(), Sound.ENTITY_ITEM_BREAK, 1, 1);
|
||||
PlayerData.get(player).getInventory().scheduleUpdate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user