From c0806e3419e8d9db69f778b7f7c47351889d1262 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 8 Mar 2020 16:23:31 +0100 Subject: [PATCH] disallow disabling all negative aura imbalance effects Can't believe this is something I have to do --- src/main/java/de/ellpeck/naturesaura/ModConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/ModConfig.java b/src/main/java/de/ellpeck/naturesaura/ModConfig.java index 2fde8e53..0d288a92 100644 --- a/src/main/java/de/ellpeck/naturesaura/ModConfig.java +++ b/src/main/java/de/ellpeck/naturesaura/ModConfig.java @@ -160,6 +160,10 @@ public final class ModConfig { } public void apply() { + if (!this.grassDieEffect.get() && !this.explosionEffect.get() && !this.breathlessEffect.get()) { + throw new IllegalStateException("Nature's Aura has detected that all negative Aura Imbalance effects are disabled in the config file. This is disallowed behavior. Please enable at least one negative effect."); + } + try { for (String s : this.additionalBotanistPickaxeConversions.get()) { String[] split = s.split("->");