Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ public void updateBlock(BlockPos pos, BlockState oldState, BlockState newState)
@Override
public void updateNeighbors(BlockPos pos, BlockState oldState, BlockState newState, int recursionLimit) {
ServerLevel world = getWorld();
oldState.affectNeighborsAfterRemoval(world, pos, false);
boolean blockChanged = !oldState.is(newState.getBlock());
if (blockChanged) {
oldState.affectNeighborsAfterRemoval(world, pos, false);
}
oldState.updateIndirectNeighbourShapes(world, pos, Block.UPDATE_CLIENTS, recursionLimit);
newState.updateNeighbourShapes(world, pos, Block.UPDATE_CLIENTS, recursionLimit);
newState.updateIndirectNeighbourShapes(world, pos, Block.UPDATE_CLIENTS, recursionLimit);
Expand Down