Skip to content

Commit

Permalink
Fix Undead Trees producing Blood Stains at wrong location, Closes #1068
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 24, 2024
1 parent bd7bfbb commit bb123e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bb123e1

Please sign in to comment.