From bb123e12f7bc9727200303b0baf499e28c75f03c Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Thu, 24 Oct 2024 14:43:59 +0200 Subject: [PATCH] Fix Undead Trees producing Blood Stains at wrong location, Closes #1068 --- .../java/org/cyclops/evilcraft/block/BlockUndeadLeaves.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cyclops/evilcraft/block/BlockUndeadLeaves.java b/src/main/java/org/cyclops/evilcraft/block/BlockUndeadLeaves.java index da25de37f0..3d27f16760 100644 --- a/src/main/java/org/cyclops/evilcraft/block/BlockUndeadLeaves.java +++ b/src/main/java/org/cyclops/evilcraft/block/BlockUndeadLeaves.java @@ -76,8 +76,8 @@ public void randomTick(BlockState state, ServerLevel worldIn, BlockPos pos, Rand int attempts = 20; BlockPos itPos = pos.relative(Direction.DOWN); while (attempts-- > 0) { - if (worldIn.getBlockState(itPos).getBlock() instanceof org.cyclops.evilcraft.block.BlockBloodStain - || (worldIn.isEmptyBlock(itPos) && state.canSurvive(worldIn, itPos))) { + if (worldIn.getBlockState(itPos).getBlock() instanceof BlockBloodStain + || (worldIn.isEmptyBlock(itPos) && RegistryEntries.BLOCK_BLOOD_STAIN.get().defaultBlockState().canSurvive(worldIn, itPos))) { // Set the air block to a blood stain BlockState blockState = worldIn.getBlockState(itPos);