From ca5cd2dab9d2684b8363c0ddbe102cc109af40e4 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 29 Jan 2021 18:03:35 +0100 Subject: [PATCH] allow replacing ores using the additionalOres config Closes #185 --- src/main/java/de/ellpeck/naturesaura/ModConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/ModConfig.java b/src/main/java/de/ellpeck/naturesaura/ModConfig.java index a7e738ad..5305758c 100644 --- a/src/main/java/de/ellpeck/naturesaura/ModConfig.java +++ b/src/main/java/de/ellpeck/naturesaura/ModConfig.java @@ -202,8 +202,10 @@ public final class ModConfig { WeightedOre ore = new WeightedOre(new ResourceLocation(split[0]), Integer.parseInt(split[1])); String dimension = split[2]; if ("nether".equalsIgnoreCase(dimension)) { + NaturesAuraAPI.NETHER_ORES.removeIf(o -> o.tag.equals(ore.tag)); NaturesAuraAPI.NETHER_ORES.add(ore); } else if ("overworld".equalsIgnoreCase(dimension)) { + NaturesAuraAPI.OVERWORLD_ORES.removeIf(o -> o.tag.equals(ore.tag)); NaturesAuraAPI.OVERWORLD_ORES.add(ore); } else { throw new IllegalArgumentException(dimension);