Make exhaustion only apply once

This commit is contained in:
abel1502 2025-06-26 23:11:24 +03:00
parent 5a0dabc5a9
commit 6946a70f18
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -195,6 +195,8 @@ public class ItemToolAbility extends ItemTool implements IDepthRockTool, IGUIPro
preset.harvestAbility.postHarvestAll(preset.harvestAbilityLevel, world, player); preset.harvestAbility.postHarvestAll(preset.harvestAbilityLevel, world, player);
player.addExhaustion(0.025F);
return true; return true;
} }
@ -380,6 +382,8 @@ public class ItemToolAbility extends ItemTool implements IDepthRockTool, IGUIPro
// Might be possible? Not in practice, though // Might be possible? Not in practice, though
MainRegistry.logger.error("Failed to capture drops for block " + block, e); MainRegistry.logger.error("Failed to capture drops for block " + block, e);
} }
player.addExhaustion(-0.025F);
} }
} }