mirror of
https://github.com/songoda/UltimateTimber.git
synced 2024-11-15 23:05:47 +01:00
Use the updated SongodaCore item damage method to fix axes not breaking.
This commit is contained in:
parent
ac8d2a9714
commit
5355e227ab
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user