Skip to content

Commit

Permalink
Fix rare QNB crash when leaving a single-player world.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Mar 10, 2024
1 parent 27c1c2d commit 804a38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public QuantumCluster(BlockPos min, BlockPos max) {

@SubscribeEvent
public void onUnload(final LevelEvent.Unload e) {
if (this.center == null && this.center.getLevel() == e.getLevel()) {
if (this.center != null && this.center.getLevel() == e.getLevel()) {
this.setUpdateStatus(false);
this.destroy();
}
Expand Down

0 comments on commit 804a38e

Please sign in to comment.