Added updateInventory() to Tree Feller

This commit is contained in:
nossr50 2012-03-02 11:07:20 -08:00
parent 292f14bf87
commit 1ac544511c

View File

@ -70,6 +70,7 @@ public class WoodCutting
//Damage the tool //Damage the tool
player.getItemInHand().setDurability((short) (player.getItemInHand().getDurability()+durabilityLoss)); player.getItemInHand().setDurability((short) (player.getItemInHand().getDurability()+durabilityLoss));
player.updateInventory(); //Silly deprecated methods
//This is to prevent using wood axes everytime you tree fell //This is to prevent using wood axes everytime you tree fell
if(player.getItemInHand().getType() == Material.AIR || player.getItemInHand() == null) if(player.getItemInHand().getType() == Material.AIR || player.getItemInHand() == null)