aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
diff options
context:
space:
mode:
authorSphyix <masifede2@gmail.com>2021-07-30 21:22:13 +0200
committerSphyix <masifede2@gmail.com>2021-07-30 21:22:13 +0200
commit1e7829f1c1c494bc84ff51d38ea6d194a5f423de (patch)
treef3b777c297a6e1ee467b5a859e4dff5960377c4a /src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
parent99f8c40f2b37b72dea22fba9f05f74253a11dffb (diff)
downloadGT5-Unofficial-1e7829f1c1c494bc84ff51d38ea6d194a5f423de.tar.gz
GT5-Unofficial-1e7829f1c1c494bc84ff51d38ea6d194a5f423de.tar.bz2
GT5-Unofficial-1e7829f1c1c494bc84ff51d38ea6d194a5f423de.zip
changed rods to work with gt_utility hazmat check
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.java3
1 files changed, 2 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 e24ed04539..7950672ec2 100644
--- a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
+++ b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
@@ -2,6 +2,7 @@ package gregtech.api.items;
import gregtech.api.GregTech_API;
+import gregtech.api.util.GT_Utility;
import ic2.api.reactor.IReactor;
import ic2.api.reactor.IReactorComponent;
import ic2.core.IC2Potion;
@@ -153,7 +154,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 (!GregTech_API.mIC2Classic&&!ItemArmorHazmat.hasCompleteHazmat(entityLiving)) {
+ if (!GregTech_API.mIC2Classic&&!GT_Utility.isWearingFullRadioHazmat(entityLiving)) {
IC2Potion.radiation.applyTo(entityLiving, sRadiation * 20, sRadiation * 10);
}
}