mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 07:07:43 +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) {
|
/*if (!itemDurability) {
|
||||||
try {
|
item.setDamage(0);
|
||||||
item.setDamage(0);
|
}*/
|
||||||
} catch (java.lang.NoSuchMethodError e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user