diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-22 14:44:26 +0100 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-22 14:44:26 +0100 |
commit | 75c1298c4b0e7b0024828d42e05cf03f4b9136bf (patch) | |
tree | 783309aa11b860567bae858e4f1a97fd461f6d07 /src/Java/gtPlusPlus/core/util/minecraft | |
parent | 9dfe88fb1a39b03bcd418409692938cb4ff557f1 (diff) | |
download | GT5-Unofficial-75c1298c4b0e7b0024828d42e05cf03f4b9136bf.tar.gz GT5-Unofficial-75c1298c4b0e7b0024828d42e05cf03f4b9136bf.tar.bz2 GT5-Unofficial-75c1298c4b0e7b0024828d42e05cf03f4b9136bf.zip |
- 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/minecraft')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java | 14 |
1 files changed, 14 insertions, 0 deletions
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; + } /** |