mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
Battleaxe
This commit is contained in:
1 parent
af1a0f6308
commit
b88c761483
754 files changed
+1982
-1174
No files matched your search
@@ -2,6 +2,7 @@ package mods.tinker.tconstruct.modifiers;
|
||||
|
||||
import mods.tinker.tconstruct.library.crafting.PatternBuilder;
|
||||
import mods.tinker.tconstruct.library.tools.AbilityHelper;
|
||||
import mods.tinker.tconstruct.library.tools.ToolCore;
|
||||
import mods.tinker.tconstruct.library.tools.ToolMod;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -80,7 +81,7 @@ public class ModRepair extends ToolMod
|
||||
if (repairCount < 0.5f)
|
||||
repairCount = 0.5f;
|
||||
increase *= repairCount;
|
||||
increase /= tool.getRepairCost();
|
||||
increase /= ((ToolCore) tool.getItem()).getRepairCost();
|
||||
|
||||
damage -= increase;
|
||||
if (damage < 0)
|
||||
|
||||
Reference in new issue
Block a user