mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-05-17 22:18:44 +02:00
parent
1de2852a22
commit
ca5cd2dab9
|
@ -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