mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
te compat fixes/tweaks
This commit is contained in:
1 parent
b61c1c581d
commit
3744f8a886
1 file changed
+3
-3
@@ -422,16 +422,16 @@ public class AbilityHelper
|
||||
float bonusLog = (float) Math.log(durability / 72f + 1) * 2 * stonebound;
|
||||
trueSpeed += bonusLog;
|
||||
trueSpeed *= 6;
|
||||
if (energy > 0)
|
||||
if (energy != -1)
|
||||
{
|
||||
if (energy < trueSpeed)
|
||||
if (energy < trueSpeed * 2)
|
||||
{
|
||||
if (energy > 0)
|
||||
tags.setInteger("Energy", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
energy -= trueSpeed;
|
||||
energy -= trueSpeed * 2;
|
||||
ToolCore tool = (ToolCore) stack.getItem();
|
||||
stack.setItemDamage(1 + (tool.getMaxEnergyStored(stack) - energy) * (stack.getMaxDamage() - 1) / tool.getMaxEnergyStored(stack));
|
||||
tags.setInteger("Energy", energy);
|
||||
|
||||
Reference in new issue
Block a user