Fix rubber sapling, closes #2281
This commit is contained in:
parent
0695250078
commit
82f8a13f15
1 changed files with 2 additions and 2 deletions
|
@ -35,13 +35,13 @@ import org.jetbrains.annotations.Nullable;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class RubberSaplingGenerator extends SaplingGenerator {
|
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
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
protected ConfiguredFeature<TreeFeatureConfig, ?> createTreeFeature(Random random, boolean bl) {
|
protected ConfiguredFeature<TreeFeatureConfig, ?> createTreeFeature(Random random, boolean bl) {
|
||||||
MutableRegistry<ConfiguredFeature<?, ?>> registry = WorldGenerator.worldGenObseravable.getA();
|
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!");
|
throw new RuntimeException("Could not find registered rubber tree feature!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue