mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 03:43:30 +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]));
|
WeightedOre ore = new WeightedOre(new ResourceLocation(split[0]), Integer.parseInt(split[1]));
|
||||||
String dimension = split[2];
|
String dimension = split[2];
|
||||||
if ("nether".equalsIgnoreCase(dimension)) {
|
if ("nether".equalsIgnoreCase(dimension)) {
|
||||||
|
NaturesAuraAPI.NETHER_ORES.removeIf(o -> o.tag.equals(ore.tag));
|
||||||
NaturesAuraAPI.NETHER_ORES.add(ore);
|
NaturesAuraAPI.NETHER_ORES.add(ore);
|
||||||
} else if ("overworld".equalsIgnoreCase(dimension)) {
|
} else if ("overworld".equalsIgnoreCase(dimension)) {
|
||||||
|
NaturesAuraAPI.OVERWORLD_ORES.removeIf(o -> o.tag.equals(ore.tag));
|
||||||
NaturesAuraAPI.OVERWORLD_ORES.add(ore);
|
NaturesAuraAPI.OVERWORLD_ORES.add(ore);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(dimension);
|
throw new IllegalArgumentException(dimension);
|
||||||
|
|
Loading…
Reference in a new issue