mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
Fixed isChunkInUse()
This commit is contained in:
parent
44c25340dc
commit
528b9b2e09
1 changed files with 2 additions and 2 deletions
|
@ -162,10 +162,10 @@ public class CraftWorld implements World {
|
|||
// This is larger than the distance of loaded chunks that actually surround a player
|
||||
// The player is the center of a 21x21 chunk grid, so the edge is 10 chunks (160 blocks) away from the player
|
||||
if (Math.abs(loc.getBlockX() - (x << 4)) <= 256 && Math.abs(loc.getBlockZ() - (z << 4)) <= 256) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean loadChunk(int x, int z, boolean generate) {
|
||||
|
|
Loading…
Reference in a new issue