Skip to content

Commit

Permalink
fix: Redstone conduits removed from world when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Rover656 committed Jan 11, 2025
1 parent aba81ea commit 73a36c3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,11 @@ public void clearContent() {
// endregion

private void redstoneConduitChanged(Direction side) {
BlockPos neighborPos = getBlockPos().relative(side);
if (!level.getBlockState(neighborPos).is(getBlockState().getBlock())) {
level.updateNeighborsAt(getBlockPos().relative(side), getBlockState().getBlock());
if (level != null) {
BlockPos neighborPos = getBlockPos().relative(side);
if (!level.getBlockState(neighborPos).is(getBlockState().getBlock())) {
level.updateNeighborsAt(getBlockPos().relative(side), getBlockState().getBlock());
}
}
}

Expand Down

0 comments on commit 73a36c3

Please sign in to comment.