mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
[CRITICAL] Fix block-coordinates being used for chunk loading.
This commit is contained in:
parent
87f83ffe65
commit
c6b1a81a26
@ -44,8 +44,8 @@ public abstract class BlockCache {
|
||||
final int maxZ = Location.locToBlock(z + xzMargin) / 16;
|
||||
for (int cx = minX; cx <= maxX; cx ++){
|
||||
for (int cz = minZ; cz <= maxZ; cz ++){
|
||||
if (!world.isChunkLoaded(cx * 16, cz * 16)){
|
||||
world.loadChunk(cx * 16, cz * 16);
|
||||
if (!world.isChunkLoaded(cx, cz)){
|
||||
world.loadChunk(cx, cz);
|
||||
loaded ++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user