From 75c1298c4b0e7b0024828d42e05cf03f4b9136bf Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Mon, 22 Oct 2018 14:44:26 +0100 Subject: - Removed Circuit Nerf for GTNH, Most recipes now have increased circuit costs. Closes #391. % Cleaned up lots of Hot Ingot code. % Made the Multi-Machine's tooltip more verbose. % Made the MK IV Fusion Reactor require MAX/UHV tier hatches, Closes #389. % Increased cost of Multi Machine controller, Closes #374. $ Fixed Hot Ingots having recycling recipes, Closes #387. $ Fixed Tooltip for Wire Factory, Closes #379. --- src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/Java/gtPlusPlus/core/util/minecraft') diff --git a/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java b/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java index d2781dfc48..839cb164cb 100644 --- a/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java +++ b/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java @@ -81,6 +81,20 @@ public class EntityUtils { } return false; } + + public static boolean applyHeatDamageToEntity(final int heatLevel, final World world, final Entity entityHolding){ + if (!world.isRemote){ + if ((heatLevel > 0) && (entityHolding instanceof EntityLivingBase)) { + final EntityLivingBase entityLiving = (EntityLivingBase) entityHolding; + if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode){ + if (!GT_Utility.isWearingFullHeatHazmat(entityLiving)) { + return GT_Utility.applyHeatDamage(entityLiving, heatLevel); + } + } + } + } + return false; + } /** -- cgit