disallow disabling all negative aura imbalance effects

Can't believe this is something I have to do
This commit is contained in:
Ellpeck 2020-03-08 16:23:31 +01:00
parent c3a02a7f38
commit c0806e3419

View file

@ -160,6 +160,10 @@ public final class ModConfig {
} }
public void apply() { 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 { try {
for (String s : this.additionalBotanistPickaxeConversions.get()) { for (String s : this.additionalBotanistPickaxeConversions.get()) {
String[] split = s.split("->"); String[] split = s.split("->");