Fix rubber sapling, closes #2281

This commit is contained in:
modmuss50 2020-11-09 18:41:36 +00:00
parent 0695250078
commit 82f8a13f15

View file

@ -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<TreeFeatureConfig, ?> createTreeFeature(Random random, boolean bl) {
MutableRegistry<ConfiguredFeature<?, ?>> registry = WorldGenerator.worldGenObseravable.getA();
if (!registry.containsId(identifier)) {
if (!registry.getIds().contains(identifier)) {
throw new RuntimeException("Could not find registered rubber tree feature!");
}