Skip to content

Commit

Permalink
Fix possible server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
stal111 committed Dec 5, 2024
1 parent 0c1cae1 commit 818d160
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ private void forEachPedestal(Predicate<PedestalBlockEntity> predicate, Consumer<
}

private void updateRitualIndicator(boolean show) {
this.level.blockEvent(this.pos, this.level.getBlockState(this.pos).getBlock(), HephaestusForgeBlockEntity.UPDATE_RITUAL_INDICATOR, BooleanUtils.toInteger(show));
if (this.level != null) {
this.level.blockEvent(this.pos, this.level.getBlockState(this.pos).getBlock(), HephaestusForgeBlockEntity.UPDATE_RITUAL_INDICATOR, BooleanUtils.toInteger(show));
}
}
}

0 comments on commit 818d160

Please sign in to comment.