diff --git a/src/tconstruct/library/tools/AbilityHelper.java b/src/tconstruct/library/tools/AbilityHelper.java index f6b0b307..45d31e73 100644 --- a/src/tconstruct/library/tools/AbilityHelper.java +++ b/src/tconstruct/library/tools/AbilityHelper.java @@ -43,6 +43,7 @@ import tconstruct.util.PHConstruct; public class AbilityHelper { public static Random random = new Random(); + public static boolean necroticUHS; /* Normal interactions */ public static boolean onBlockChanged (ItemStack stack, World world, int bID, int x, int y, int z, EntityLivingBase player, Random random) @@ -206,7 +207,7 @@ public class AbilityHelper } //damageTool(stack, 1, player, false); tool.onEntityDamaged(player.worldObj, player, entity); - if (!PHConstruct.necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0)) + if (!necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0)) { int drain = toolTags.getInteger("Necrotic") * 2; if (drain > 0) diff --git a/src/tconstruct/util/PHConstruct.java b/src/tconstruct/util/PHConstruct.java index 74efa91e..e508457c 100644 --- a/src/tconstruct/util/PHConstruct.java +++ b/src/tconstruct/util/PHConstruct.java @@ -1,9 +1,11 @@ package tconstruct.util; +import java.io.File; +import java.io.IOException; + import net.minecraftforge.common.Configuration; import net.minecraftforge.common.Property; -import java.io.File; -import java.io.IOException; +import tconstruct.library.tools.AbilityHelper; public class PHConstruct { @@ -344,7 +346,7 @@ public class PHConstruct worldBorder = config.get("Ultra Hardcore Changes", "Add World Border", false).getBoolean(false); worldBorderSize = config.get("Ultra Hardcore Changes", "World Border Radius", 1000).getInt(1000); freePatterns = config.get("Ultra Hardcore Changes", "Add Patterns to Pattern Chests", false, "Gives all tier 1 patterns when pattern chest is placed").getBoolean(false); - necroticUHS = config.get("Ultra Hardcore Changes", "Necrotic modifier only heals on hostile mob kills", false).getBoolean(false); + AbilityHelper.necroticUHS = config.get("Ultra Hardcore Changes", "Necrotic modifier only heals on hostile mob kills", false).getBoolean(false); //Slime pools islandRarity = config.get("Worldgen", "Slime Island Rarity", 450).getInt(450); @@ -673,7 +675,6 @@ public class PHConstruct public static int worldBorderSize; public static boolean freePatterns; public static int goldHead; - public static boolean necroticUHS; //Superfun public static boolean superfunWorld;