mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
parent
1de2852a22
commit
ca5cd2dab9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue