mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 23:25:21 +01:00
'Fixed' java.lang.NoSuchMethodError: Item.setDamage(I)V.
This commit is contained in:
parent
79518e6503
commit
b7e91ac6d0
@ -348,12 +348,9 @@ public boolean onItemDrop(Player player, Item item) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!itemDurability) {
|
||||
try {
|
||||
item.setDamage(0);
|
||||
} catch (java.lang.NoSuchMethodError e) {
|
||||
}
|
||||
}
|
||||
/*if (!itemDurability) {
|
||||
item.setDamage(0);
|
||||
}*/
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user