aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/items
diff options
context:
space:
mode:
authorAndrey <timeconqueror999@gmail.com>2021-08-01 13:40:42 +0300
committerGitHub <noreply@github.com>2021-08-01 13:40:42 +0300
commit01bad48a4cc564725277c93ed1f004db8048bdc2 (patch)
tree2eff9d12b13fc6db5682c31c7dd3253fdaf1ec4f /src/main/java/gregtech/api/items
parent352e16cceb3e419f1ea63af2384b0aced76f9451 (diff)
parent827a47c3cf0c26d81403f718dc3654a367436c2b (diff)
downloadGT5-Unofficial-01bad48a4cc564725277c93ed1f004db8048bdc2.tar.gz
GT5-Unofficial-01bad48a4cc564725277c93ed1f004db8048bdc2.tar.bz2
GT5-Unofficial-01bad48a4cc564725277c93ed1f004db8048bdc2.zip
Merge branch 'experimental' into code-improvements
Diffstat (limited to 'src/main/java/gregtech/api/items')
-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);
}
}