From 1ac544511cffa47f46d0b54c677297c919924f45 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 2 Mar 2012 11:07:20 -0800 Subject: [PATCH] Added updateInventory() to Tree Feller --- src/main/java/com/gmail/nossr50/skills/WoodCutting.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java index d88208536..30994b7dd 100644 --- a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java @@ -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)