mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 02:58:03 +01:00
Added updateInventory() to Tree Feller
This commit is contained in:
parent
292f14bf87
commit
1ac544511c
@ -70,6 +70,7 @@ public class WoodCutting
|
||||
|
||||
//Damage the tool
|
||||
player.getItemInHand().setDurability((short) (player.getItemInHand().getDurability()+durabilityLoss));
|
||||
player.updateInventory(); //Silly deprecated methods
|
||||
|
||||
//This is to prevent using wood axes everytime you tree fell
|
||||
if(player.getItemInHand().getType() == Material.AIR || player.getItemInHand() == null)
|
||||
|
Loading…
Reference in New Issue
Block a user