mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
Merge branch 'master' into weaponry
Conflicts: src/main/java/tconstruct/tools/ToolProxyClient.java
This commit is contained in:
commit
947da8f9df
21 files changed
+2127
-38
No files matched your search
@@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import tconstruct.library.modifier.IModifyable;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
|
||||
/* TE3 support */
|
||||
|
||||
@@ -59,7 +60,7 @@ public class ModFlux extends ModBoolean
|
||||
int maxEnergy = ((IEnergyContainerItem) foundBattery.getItem()).getMaxEnergyStored(foundBattery);
|
||||
|
||||
// battery too big for our tool?
|
||||
if(tags.getInteger("TotalDurability") < maxEnergy/1000) // durability needs to be at least 1/1000th of the charge
|
||||
if(PHConstruct.balancedFluxModifier && tags.getInteger("TotalDurability") < maxEnergy/1000) // durability needs to be at least 1/1000th of the charge
|
||||
return false;
|
||||
|
||||
// check if we already have a flux modifier
|
||||
|
||||
Reference in new issue
Block a user