From 82f8a13f15e77f933750907a58c0ddbd4f8b248d Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 9 Nov 2020 18:41:36 +0000 Subject: [PATCH] Fix rubber sapling, closes #2281 --- src/main/java/techreborn/world/RubberSaplingGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!"); }