Use the updated SongodaCore item damage method to fix axes not breaking.

This commit is contained in:
Brianna 2021-01-21 10:19:02 -06:00
parent ac8d2a9714
commit 5355e227ab

View File

@ -137,7 +137,7 @@ public class TreeFallManager extends Manager implements Listener {
boolean isCreative = player.getGameMode().equals(GameMode.CREATIVE);
if (!isCreative)
ItemUtils.addDamage(tool, toolDamage);
ItemUtils.addDamage(player, tool, toolDamage);
if (ConfigurationManager.Setting.HOOKS_APPLY_EXPERIENCE.getBoolean()) {
McMMOHook.addWoodcutting(player, detectedTree.getDetectedTreeBlocks().getAllTreeBlocks().stream()