Skip to content

Commit

Permalink
Remove farmland check from isBlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
Alveel committed Apr 2, 2024
1 parent 36f9dc3 commit feefa26
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public static float getOffset(BlockState blockState, BlockPos pos, ClientLevel w
}

public static boolean isBlocked(BlockState block, BlockPos pos, ClientLevel world) {
if (block.getBlock() instanceof FarmBlock) return false; // farmland

BlockPos posUp = pos.above();
BlockState blockStateUp = world.getBlockState(posUp);
// Resource: https://minecraft.fandom.com/wiki/Tutorials/Spawn-proofing
Expand Down

0 comments on commit feefa26

Please sign in to comment.