diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2016-10-16 18:08:26 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2016-10-16 18:08:26 +0200 |
commit | fa79dcd2635a317972ca0a8400cf8820c40e72de (patch) | |
tree | 2e5bac28974b1d917dc1932a678324c8ea68737d /src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java | |
parent | f97698b054c1d3ef1544365a65ccd90ba8d3bb6c (diff) | |
download | GT5-Unofficial-fa79dcd2635a317972ca0a8400cf8820c40e72de.tar.gz GT5-Unofficial-fa79dcd2635a317972ca0a8400cf8820c40e72de.tar.bz2 GT5-Unofficial-fa79dcd2635a317972ca0a8400cf8820c40e72de.zip |
Base IC2 Classic compat. Reactor components disabled, some recipes likely missing/broken
Diffstat (limited to 'src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java')
-rw-r--r-- | src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java index 9304068159..fe136e0621 100644 --- a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java +++ b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java @@ -12,6 +12,8 @@ import net.minecraft.world.World; import java.util.ArrayList; +import gregtech.api.GregTech_API; + public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implements IReactorComponent { public final int numberOfCells; @@ -144,7 +146,7 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement public void onUpdate(ItemStack stack, World world, Entity entity, int slotIndex, boolean isCurrentItem) { if (this.sRadiation > 0 && (entity instanceof EntityLivingBase)) { EntityLivingBase entityLiving = (EntityLivingBase) entity; - if (!ItemArmorHazmat.hasCompleteHazmat(entityLiving)) { + if (!GregTech_API.mIC2Classic&&!ItemArmorHazmat.hasCompleteHazmat(entityLiving)) { IC2Potion.radiation.applyTo(entityLiving, sRadiation * 20, sRadiation * 10); } } |