Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Paper Chunk registration fixes & Fix infinite loop when saving chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
crafter23456 committed Feb 20, 2022
1 parent ead58d0 commit 0d70a5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public void b() {
if (this.c()) {
continue;
}
break; // Paper - fix infinite loop when saving chunks
}
} finally {
this.e = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ public void entityJoinedWorld(Entity entity, boolean flag) {
}

int k = MathHelper.floor(entity.locX / 16.0D);
int l = MathHelper.floor(entity.locY / 16.0D);
//int l = MathHelper.floor(entity.locY / 16.0D);
int l = Math.min(15, Math.max(0, MathHelper.floor(entity.locY / 16.0D))); // Paper - stay consistent with chunk add/remove behavior
int i1 = MathHelper.floor(entity.locZ / 16.0D);

// Nacho start - deobfuscate chunkX, chunkY, chunkZ removeEntity
Expand Down

0 comments on commit 0d70a5a

Please sign in to comment.