mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-13 17:55:26 +02:00
Attempting to fix index error.
This commit is contained in:
@@ -82,7 +82,7 @@ public class BlockStoreConversionZDirectory implements Runnable {
|
||||
|
||||
this.manager.loadChunk(this.cx, this.cz, this.world);
|
||||
|
||||
for(this.y = 0; this.y < 4; this.y++) {
|
||||
for(this.y = 0; this.y < (this.world.getMaxHeight() / 64); this.y++) {
|
||||
this.chunkletName = this.world.getName() + "," + this.cx + "," + this.cz + "," + this.y;
|
||||
this.tempChunklet = this.manager.store.get(this.chunkletName);
|
||||
if(this.tempChunklet instanceof PrimitiveChunkletStore)
|
||||
@@ -128,6 +128,10 @@ public class BlockStoreConversionZDirectory implements Runnable {
|
||||
else
|
||||
return;
|
||||
this.newArray = this.currentChunk.store[x][z];
|
||||
if(this.oldArray.length < 64)
|
||||
return;
|
||||
else if(this.newArray.length < ((this.y * 64) + 64))
|
||||
return;
|
||||
System.arraycopy(this.oldArray, 0, this.newArray, (this.y * 64), 64);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user