geforkt von Mirrors/Paper
Ursprung
952ccf3125
Commit
bf9672aeac
@ -959,6 +959,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ * redstone wire in an invalid state.
|
+ * redstone wire in an invalid state.
|
||||||
+ */
|
+ */
|
||||||
+ public void updateNeighborShapes(Level level, BlockPos pos, BlockState 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) {
|
+ for (Direction dir : UPDATE_SHAPE_ORDER) {
|
||||||
+ BlockPos neighborPos = pos.relative(dir);
|
+ BlockPos neighborPos = pos.relative(dir);
|
||||||
+ BlockState neighborState = level.getBlockState(neighborPos);
|
+ BlockState neighborState = level.getBlockState(neighborPos);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren