mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
parent
952ccf3125
commit
bf9672aeac
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue