Add hazmat protection to bound and omega armors (#111)

Co-authored-by: UltraProdigy <187078471+UltraProdigy@users.noreply.github.com>
This commit is contained in:
WoriveandUltraProdigy authored and GitHub committed 2025-12-10 05:46:31 +00:00
1 parent 8e6d033785
commit ee083ddf64
1 file changed
+13 -3
@@ -34,6 +34,8 @@ import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.Optional.Interface;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.hazards.Hazard;
import gregtech.api.hazards.IHazardProtector;
import thaumcraft.api.IGoggles;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.nodes.IRevealer;
@@ -41,9 +43,10 @@ import thaumcraft.api.nodes.IRevealer;
@Optional.InterfaceList(
value = { @Interface(iface = "thaumcraft.api.nodes.IRevealer", modid = "Thaumcraft"),
@Interface(iface = "thaumcraft.api.IGoggles", modid = "Thaumcraft"),
@Interface(iface = "thaumcraft.api.IRunicArmor", modid = "Thaumcraft") })
public class BoundArmour extends ItemArmor
implements IAlchemyGoggles, ISpecialArmor, IBindable, IRevealer, IGoggles, IRunicArmor, ILPGauge {
@Interface(iface = "thaumcraft.api.IRunicArmor", modid = "Thaumcraft"),
@Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech_nh") })
public class BoundArmour extends ItemArmor implements IAlchemyGoggles, ISpecialArmor, IBindable, IRevealer, IGoggles,
IRunicArmor, ILPGauge, IHazardProtector {
private static int invSize = 9;
@@ -740,4 +743,11 @@ public class BoundArmour extends ItemArmor
return false;
}
/// GT5 Hazmat protection
@Optional.Method(modid = "gregtech_nh")
@Override
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
}
}