diff --git a/patches/server/0064-Redstone-wire-dont-connect-if-on-trapdoor.patch b/patches/server/0064-Redstone-wire-dont-connect-if-on-trapdoor.patch index e694d4ac..667a8b87 100644 --- a/patches/server/0064-Redstone-wire-dont-connect-if-on-trapdoor.patch +++ b/patches/server/0064-Redstone-wire-dont-connect-if-on-trapdoor.patch @@ -5,9 +5,18 @@ Subject: [PATCH] Redstone wire dont connect if on trapdoor diff --git a/src/main/java/net/minecraft/world/level/block/RedStoneWireBlock.java b/src/main/java/net/minecraft/world/level/block/RedStoneWireBlock.java -index 507be06ad51b7a212e28d3ca6680e0e4b00f4233..36984ff7b8ffa253cf5279f89b056cf976f186bd 100644 +index 507be06ad51b7a212e28d3ca6680e0e4b00f4233..a00cdca84be352528e54f8369bd12043f4fc776a 100644 --- a/src/main/java/net/minecraft/world/level/block/RedStoneWireBlock.java +++ b/src/main/java/net/minecraft/world/level/block/RedStoneWireBlock.java +@@ -174,7 +174,7 @@ public class RedStoneWireBlock extends Block { + @Override + public BlockState updateShape(BlockState state, Direction direction, BlockState neighborState, LevelAccessor world, BlockPos pos, BlockPos neighborPos) { + if (direction == Direction.DOWN) { +- return !this.canSurviveOn(world, neighborPos, neighborState) ? Blocks.AIR.defaultBlockState() : state; ++ return top.leavesmc.leaves.LeavesConfig.redstoneDontCantOnTrapDoor ? state : !this.canSurviveOn(world, neighborPos, neighborState) ? Blocks.AIR.defaultBlockState() : state; // Leaves - behavior to 1.19 + } else if (direction == Direction.UP) { + return this.getConnectionState(world, state, pos); + } else { @@ -233,7 +233,7 @@ public class RedStoneWireBlock extends Block { BlockState iblockdata = world.getBlockState(blockposition1);