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