Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Fixed isChunkInUse()
Dieser Commit ist enthalten in:
Ursprung
44c25340dc
Commit
528b9b2e09
@ -162,11 +162,11 @@ public class CraftWorld implements World {
|
|||||||
// This is larger than the distance of loaded chunks that actually surround a player
|
// 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
|
// 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) {
|
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) {
|
public boolean loadChunk(int x, int z, boolean generate) {
|
||||||
if (generate) {
|
if (generate) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren