Ver código fonte

Added updateInventory() to Tree Feller

nossr50 13 anos atrás
pai
commit
1ac544511c

+ 1 - 0
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)