mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Load the lowest chunklets right now.
Thanks for @Glitchfinder for finding this glitch. Closes #205
This commit is contained in:
parent
09575a68f0
commit
f589197321
@ -27,7 +27,7 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
File czDir = new File(cxDir, "" + cz);
|
File czDir = new File(cxDir, "" + cz);
|
||||||
if(!czDir.exists()) return;
|
if(!czDir.exists()) return;
|
||||||
|
|
||||||
for(int y = 1; y <= 4; y++) {
|
for(int y = 0; y < 4; y++) {
|
||||||
File yFile = new File(czDir, "" + y);
|
File yFile = new File(czDir, "" + y);
|
||||||
if(!yFile.exists()) {
|
if(!yFile.exists()) {
|
||||||
continue;
|
continue;
|
||||||
@ -44,7 +44,7 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
public void chunkUnloaded(int cx, int cz, World world) {
|
public void chunkUnloaded(int cx, int cz, World world) {
|
||||||
File dataDir = new File(world.getWorldFolder(), "mcmmo_data");
|
File dataDir = new File(world.getWorldFolder(), "mcmmo_data");
|
||||||
|
|
||||||
for(int y = 1; y <= 4; y++) {
|
for(int y = 0; y < 4; y++) {
|
||||||
if(store.containsKey(world.getName() + "," + cx + "," + cz + "," + y)) {
|
if(store.containsKey(world.getName() + "," + cx + "," + cz + "," + y)) {
|
||||||
File cxDir = new File(dataDir, "" + cx);
|
File cxDir = new File(dataDir, "" + cx);
|
||||||
if(!cxDir.exists()) cxDir.mkdir();
|
if(!cxDir.exists()) cxDir.mkdir();
|
||||||
|
Loading…
Reference in New Issue
Block a user