mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-23 07:19:33 +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.
|
+ * 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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue