mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Renamed y to z in DynmapChunk.
This commit is contained in:
parent
fb1b5df3d0
commit
5c209c2a5e
@ -1,10 +1,10 @@
|
|||||||
package org.dynmap;
|
package org.dynmap;
|
||||||
|
|
||||||
public class DynmapChunk {
|
public class DynmapChunk {
|
||||||
public int x, y;
|
public int x, z;
|
||||||
|
|
||||||
public DynmapChunk(int x, int y) {
|
public DynmapChunk(int x, int z) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.z = z;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,13 +103,13 @@ public class MapManager extends Thread {
|
|||||||
// Unload old chunks.
|
// Unload old chunks.
|
||||||
while (loadedChunks.size() >= requiredChunkCount - requiredChunks.length) {
|
while (loadedChunks.size() >= requiredChunkCount - requiredChunks.length) {
|
||||||
DynmapChunk c = loadedChunks.pollFirst();
|
DynmapChunk c = loadedChunks.pollFirst();
|
||||||
world.unloadChunk(c.x, c.y, false, true);
|
world.unloadChunk(c.x, c.z, false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the required chunks.
|
// Load the required chunks.
|
||||||
for (DynmapChunk chunk : requiredChunks) {
|
for (DynmapChunk chunk : requiredChunks) {
|
||||||
boolean wasLoaded = world.isChunkLoaded(chunk.x, chunk.y);
|
boolean wasLoaded = world.isChunkLoaded(chunk.x, chunk.z);
|
||||||
world.loadChunk(chunk.x, chunk.y, false);
|
world.loadChunk(chunk.x, chunk.z, false);
|
||||||
if (!wasLoaded)
|
if (!wasLoaded)
|
||||||
loadedChunks.add(chunk);
|
loadedChunks.add(chunk);
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ public class MapManager extends Thread {
|
|||||||
// Unload remaining chunks to clean-up.
|
// Unload remaining chunks to clean-up.
|
||||||
while (!loadedChunks.isEmpty()) {
|
while (!loadedChunks.isEmpty()) {
|
||||||
DynmapChunk c = loadedChunks.pollFirst();
|
DynmapChunk c = loadedChunks.pollFirst();
|
||||||
world.unloadChunk(c.x, c.y, false, true);
|
world.unloadChunk(c.x, c.z, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debugger.debug("Full render finished.");
|
debugger.debug("Full render finished.");
|
||||||
|
Loading…
Reference in New Issue
Block a user