From 67af09918f81905a8e479015ffe804c8d959a0bb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 12 Jul 2020 18:55:44 +0200 Subject: [PATCH] Fixed the ore gen config not working with tags Closes #127 --- src/main/java/de/ellpeck/naturesaura/ModConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/ModConfig.java b/src/main/java/de/ellpeck/naturesaura/ModConfig.java index ea36a44d..f24ad5ea 100644 --- a/src/main/java/de/ellpeck/naturesaura/ModConfig.java +++ b/src/main/java/de/ellpeck/naturesaura/ModConfig.java @@ -61,7 +61,7 @@ public final class ModConfig { .translation("config." + NaturesAura.MOD_ID + ".auraTypeOverrides") .defineList("auraTypeOverrides", Collections.emptyList(), s -> true); this.additionalOres = builder - .comment("Additional blocks that are recognized as generatable ores for the passive ore generation effect. Each entry needs to be formatted as oredictEntry:oreWeight:dimension where a higher weight makes the ore more likely to spawn with 5000 being the weight of coal, the default ore with the highest weight, and dimension being any of overworld and nether") + .comment("Additional blocks that are recognized as generatable ores for the passive ore generation effect. Each entry needs to be formatted as tag_name->oreWeight->dimension where a higher weight makes the ore more likely to spawn with 5000 being the weight of coal, the default ore with the highest weight, and dimension being any of overworld and nether") .translation("config." + NaturesAura.MOD_ID + ".additionalOres") .defineList("additionalOres", Collections.emptyList(), s -> true); this.oreExceptions = builder @@ -194,7 +194,7 @@ public final class ModConfig { try { for (String s : this.additionalOres.get()) { - String[] split = s.split(":"); + String[] split = s.split("->"); WeightedOre ore = new WeightedOre(new ResourceLocation(split[0]), Integer.parseInt(split[1])); String dimension = split[2]; if ("nether".equalsIgnoreCase(dimension)) {