diff --git a/src/main/java/techreborn/world/RubberSaplingGenerator.java b/src/main/java/techreborn/world/RubberSaplingGenerator.java index ed8a443cd..a861da959 100644 --- a/src/main/java/techreborn/world/RubberSaplingGenerator.java +++ b/src/main/java/techreborn/world/RubberSaplingGenerator.java @@ -35,13 +35,13 @@ import org.jetbrains.annotations.Nullable; import java.util.Random; public class RubberSaplingGenerator extends SaplingGenerator { - private final Identifier identifier = new Identifier("techreborn", "rubber_tree"); + private final Identifier identifier = new Identifier("techreborn", "techreborn/features/rubber_tree.json"); @Nullable @Override protected ConfiguredFeature createTreeFeature(Random random, boolean bl) { MutableRegistry> registry = WorldGenerator.worldGenObseravable.getA(); - if (!registry.containsId(identifier)) { + if (!registry.getIds().contains(identifier)) { throw new RuntimeException("Could not find registered rubber tree feature!"); }