mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Possible fix for [Issue #53]
This commit is contained in:
parent
fded7cad96
commit
42ddf648b1
@ -192,7 +192,7 @@ public class Repair {
|
|||||||
removeItem(player, rIron);
|
removeItem(player, rIron);
|
||||||
repairItem(player, enchants, enchantsLevel);
|
repairItem(player, enchants, enchantsLevel);
|
||||||
|
|
||||||
durabilityAfter = (short) (player.getItemInHand().getDurability()-getRepairAmount(is, player));
|
durabilityAfter = (short) (player.getItemInHand().getDurability();
|
||||||
dif = (short) (durabilityBefore - durabilityAfter);
|
dif = (short) (durabilityBefore - durabilityAfter);
|
||||||
if(m.isShovel(is))
|
if(m.isShovel(is))
|
||||||
dif = (short) (dif / 3);
|
dif = (short) (dif / 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user