[CRITICAL] Fix block-coordinates being used for chunk loading.

This commit is contained in:
asofold 2013-05-23 10:38:02 +02:00
parent 87f83ffe65
commit c6b1a81a26

View File

@ -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 ++;
}
}