Skip to content

Commit

Permalink
Load early if has renderable chunk at position
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 13, 2024
1 parent 5275fa5 commit d20f043
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void tick() {
case WAITING_FOR_PLAYER_CHUNK -> {
var blockPos = this.player.blockPosition();
var outsideHeight = this.level.isOutsideBuildHeight(blockPos.getY());
if (outsideHeight || this.player.isSpectator() || !this.player.isAlive()) {
if (outsideHeight || this.level.isChunkPositionLoaded(blockPos.getX(), blockPos.getZ()) || this.player.isSpectator() || !this.player.isAlive()) {
this.status = LevelLoadStatusManager.Status.LEVEL_READY;
}
}
Expand Down

0 comments on commit d20f043

Please sign in to comment.