mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Make exhaustion only apply once
This commit is contained in:
parent
5a0dabc5a9
commit
6946a70f18
@ -195,6 +195,8 @@ public class ItemToolAbility extends ItemTool implements IDepthRockTool, IGUIPro
|
||||
|
||||
preset.harvestAbility.postHarvestAll(preset.harvestAbilityLevel, world, player);
|
||||
|
||||
player.addExhaustion(0.025F);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -379,7 +381,9 @@ public class ItemToolAbility extends ItemTool implements IDepthRockTool, IGUIPro
|
||||
} catch (InvocationTargetException e) {
|
||||
// Might be possible? Not in practice, though
|
||||
MainRegistry.logger.error("Failed to capture drops for block " + block, e);
|
||||
}
|
||||
}
|
||||
|
||||
player.addExhaustion(-0.025F);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user