1
0
mirror of https://github.com/EngineHub/WorldGuard.git synced 2024-12-20 08:07:55 +01:00

'Fixed' java.lang.NoSuchMethodError: Item.setDamage(I)V.

This commit is contained in:
sk89q 2010-11-24 13:09:53 -08:00
parent 79518e6503
commit b7e91ac6d0

View File

@ -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;
}