13
0
geforkt von Mirrors/Paper
Dieser Commit ist enthalten in:
Space Walker 2022-07-13 23:20:26 +02:00
Ursprung 952ccf3125
Commit bf9672aeac

Datei anzeigen

@ -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);