From e45ccb8120c58a320ff0d9d7dfa3989b456ef6cf Mon Sep 17 00:00:00 2001 From: SammySemicolon <69329424+SammySemicolon@users.noreply.github.com> Date: Thu, 23 Nov 2023 00:54:04 +0100 Subject: [PATCH] Fix Tree --- .../sammy/malum/common/block/nature/MalumSaplingBlock.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/sammy/malum/common/block/nature/MalumSaplingBlock.java b/src/main/java/com/sammy/malum/common/block/nature/MalumSaplingBlock.java index a3635aa87..a4afcf0e6 100644 --- a/src/main/java/com/sammy/malum/common/block/nature/MalumSaplingBlock.java +++ b/src/main/java/com/sammy/malum/common/block/nature/MalumSaplingBlock.java @@ -1,7 +1,7 @@ package com.sammy.malum.common.block.nature; import com.sammy.malum.registry.common.block.BlockTagRegistry; -import com.sammy.malum.registry.common.worldgen.ConfiguredFeatureRegistry; +import com.sammy.malum.registry.common.worldgen.*; import net.minecraft.core.BlockPos; import net.minecraft.core.Holder; import net.minecraft.core.registries.Registries; @@ -40,10 +40,6 @@ public void advanceTree(ServerLevel level, BlockPos pos, BlockState state, Rando if (state.getValue(STAGE) == 0) { level.setBlock(pos, state.cycle(STAGE), 4); } else { - Holder> holder = level.registryAccess().registryOrThrow(Registries.CONFIGURED_FEATURE).getHolder(ConfiguredFeatureRegistry.CONFIGURED_RUNEWOOD_TREE).orElse(null); - if (!ForgeEventFactory.blockGrowFeature(level, rand, pos, holder).getResult().equals(Event.Result.DENY)) { - return; - } tree.get().place(NoneFeatureConfiguration.INSTANCE, level, level.getChunkSource().getGenerator(), rand, pos); } }