From 95421a8476969264a3ca119aa075ede401f0f8cd Mon Sep 17 00:00:00 2001 From: Thom van den Akker Date: Wed, 1 Jan 2025 11:17:02 +0100 Subject: [PATCH] Update max placement height for scarecrows --- src/main/java/com/minecolonies/core/blocks/BlockScarecrow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minecolonies/core/blocks/BlockScarecrow.java b/src/main/java/com/minecolonies/core/blocks/BlockScarecrow.java index dbcd91e4e81..3197e88ce5c 100755 --- a/src/main/java/com/minecolonies/core/blocks/BlockScarecrow.java +++ b/src/main/java/com/minecolonies/core/blocks/BlockScarecrow.java @@ -153,7 +153,7 @@ public BlockState getStateForPlacement(final BlockPlaceContext context) { @NotNull final Direction dir = (context.getPlayer() == null) ? Direction.NORTH : Direction.fromYRot(context.getPlayer().getYRot() + 180); - if (context.getClickedPos().getY() < 255 && context.getLevel().getBlockState(context.getClickedPos().above()).canBeReplaced(context)) + if (context.getClickedPos().getY() < context.getLevel().getMaxBuildHeight() && context.getLevel().getBlockState(context.getClickedPos().above()).canBeReplaced(context)) { return this.defaultBlockState().setValue(FACING, dir).setValue(HALF, DoubleBlockHalf.LOWER); }