diff --git a/src/main/java/it/hurts/metallurgy_reforged/config/EffectTweaksConfig.java b/src/main/java/it/hurts/metallurgy_reforged/config/EffectTweaksConfig.java index 12ec26775..efc456033 100644 --- a/src/main/java/it/hurts/metallurgy_reforged/config/EffectTweaksConfig.java +++ b/src/main/java/it/hurts/metallurgy_reforged/config/EffectTweaksConfig.java @@ -16,11 +16,14 @@ @Config(modid = Metallurgy.MODID, name = "metallurgy_reforged/effects", category = "effect_tweaks") public class EffectTweaksConfig { + @Config.Name("Hot-Blooded Drinking Damage") + @Config.Comment("Set to false to disable damage after drinking") + public static boolean enableIgnatiusDrinkDamage = true; + @Config.Name("Ethereal BlackList") - @Config.Comment("You can blacklist blocks that players cannot clip through.") + @Config.Comment("You can blacklist blocks that players cannot clip through") public static String[] etheriumEffectArmorBlacklist = new String[]{"minecraft:bedrock"}; - @Config.Name("Chaos Crit Damage Upper Bound") @Config.Comment("Chaos Crit damage multiplier is a random number between 1.2 and this value") @Config.RangeDouble(min = 1.2, max = 50) diff --git a/src/main/java/it/hurts/metallurgy_reforged/effect/armor/IgnatiusArmorEffect.java b/src/main/java/it/hurts/metallurgy_reforged/effect/armor/IgnatiusArmorEffect.java index 4805ab3a3..15d7dcba0 100644 --- a/src/main/java/it/hurts/metallurgy_reforged/effect/armor/IgnatiusArmorEffect.java +++ b/src/main/java/it/hurts/metallurgy_reforged/effect/armor/IgnatiusArmorEffect.java @@ -10,6 +10,7 @@ package it.hurts.metallurgy_reforged.effect.armor; import it.hurts.metallurgy_reforged.capabilities.effect.ProgressiveDataBundle; +import it.hurts.metallurgy_reforged.config.EffectTweaksConfig; import it.hurts.metallurgy_reforged.effect.BaseMetallurgyEffect; import it.hurts.metallurgy_reforged.effect.EnumEffectCategory; import it.hurts.metallurgy_reforged.effect.IProgressiveEffect; @@ -140,7 +141,7 @@ public void dealWaterDamage(LivingEvent.LivingUpdateEvent event) public void drinkDamage(LivingEntityUseItemEvent.Finish event) { EntityLivingBase entity = event.getEntityLiving(); - if (!canBeApplied(entity)) + if (!EffectTweaksConfig.enableIgnatiusDrinkDamage || !canBeApplied(entity)) return; EnumAction action = event.getItem().getItem().getItemUseAction(event.getItem());