diff options
author | David Lindström <info@davidlindstrom.se> | 2023-01-20 09:27:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 09:27:42 +0100 |
commit | 750a4070af4756e3708e2b2555b9874864bf3cfb (patch) | |
tree | 29f029934a68871d7dd35592a1b952af995bf10e /src/main/java/gregtech/common | |
parent | c7f1646f4b473359d270d55e4dc54cb1f4e7a64b (diff) | |
download | GT5-Unofficial-750a4070af4756e3708e2b2555b9874864bf3cfb.tar.gz GT5-Unofficial-750a4070af4756e3708e2b2555b9874864bf3cfb.tar.bz2 GT5-Unofficial-750a4070af4756e3708e2b2555b9874864bf3cfb.zip |
Add Hazmat enchant to add Full Hazmat protection to an arbitrary armor item (#1663)
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_Proxy.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index 1a97ddd4d0..92cfd04655 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -2981,6 +2981,9 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler, IG } public static boolean providesProtection(ItemStack aStack) { + + if (GT_Utility.hasHazmatEnchant(aStack)) return true; + boolean isGas = GT_Utility.isStackInList(aStack, GregTech_API.sGasHazmatList); boolean isBio = GT_Utility.isStackInList(aStack, GregTech_API.sBioHazmatList); boolean isFrost = GT_Utility.isStackInList(aStack, GregTech_API.sFrostHazmatList); |