This commit is contained in:
Space Walker 2022-07-13 23:20:26 +02:00
parent 952ccf3125
commit bf9672aeac

View file

@ -959,6 +959,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * 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);