From cd215af6eb784724868ea0d276e6cc0f06fc2624 Mon Sep 17 00:00:00 2001 From: Space Walker <48224626+SpaceWalkerRS@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:20:26 +0200 Subject: [PATCH] Fix #8138 (#8139) --- .../server/0486-Eigencraft-redstone-implementation.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/server/0486-Eigencraft-redstone-implementation.patch b/patches/server/0486-Eigencraft-redstone-implementation.patch index 556c1b9593..970e03443a 100644 --- a/patches/server/0486-Eigencraft-redstone-implementation.patch +++ b/patches/server/0486-Eigencraft-redstone-implementation.patch @@ -20,10 +20,10 @@ Just added Bukkit's event system and took a few liberties with dead code and com diff --git a/src/main/java/com/destroystokyo/paper/util/RedstoneWireTurbo.java b/src/main/java/com/destroystokyo/paper/util/RedstoneWireTurbo.java new file mode 100644 -index 0000000000000000000000000000000000000000..3e709645f5c35d16beefa4328a0a8e9c95e632aa +index 0000000000000000000000000000000000000000..22a2547810d0c029f29685faddf7ac21cde2df0b --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/util/RedstoneWireTurbo.java -@@ -0,0 +1,954 @@ +@@ -0,0 +1,957 @@ +package com.destroystokyo.paper.util; + +import java.util.List; @@ -959,6 +959,9 @@ index 0000000000000000000000000000000000000000..3e709645f5c35d16beefa4328a0a8e9c + * redstone wire in an invalid state. + */ + public void updateNeighborShapes(Level level, BlockPos pos, BlockState state) { ++ // these updates will be added to the stack and processed after the entire network has updated ++ state.updateIndirectNeighbourShapes(level, pos, Block.UPDATE_KNOWN_SHAPE | Block.UPDATE_CLIENTS); ++ + for (Direction dir : UPDATE_SHAPE_ORDER) { + BlockPos neighborPos = pos.relative(dir); + BlockState neighborState = level.getBlockState(neighborPos);