jonryf / TreeFeller

https://www.spigotmc.org/resources/tree-feller-async.20385/
5 stars 9 forks source link

EssentialsX /stack weapons #15

Open timriker opened 3 years ago

timriker commented 3 years ago

When using /stack from EssentialsX to have a stack of axes, TreeFeller does not switch to the next weapon in the stack. It instead discards all other items in the stack.

timriker commented 3 years ago

I suspect this code needs updating in TreeCutter.java

if (item.getType().getMaxDurability() == item.getDurability())
  player.setItemInHand(null);