Skip to content

Commit

Permalink
fix: skip sign block updating if it has an invalid location
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Nov 22, 2023
1 parent 5fc4ffb commit e7eea18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,7 @@ public void updateSigns() {
}

for (SignBlock signBlock : gameSigns) {
if (signBlock.getLocation().getChunk().isLoaded()) {
if (signBlock.getLocation() != null && signBlock.getLocation().getChunk().isLoaded()) {
BlockState blockState = signBlock.getLocation().getBlock().getState();
if (blockState instanceof Sign) {
Sign sign = (Sign) blockState;
Expand Down

0 comments on commit e7eea18

Please sign in to comment.