Skip to content

Commit

Permalink
Fix #8138 (#8139)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Jul 13, 2022
1 parent e4f21e3 commit cd215af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions patches/server/0486-Eigencraft-redstone-implementation.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cd215af

Please sign in to comment.