Fixed exploration progress not loading

This commit is contained in:
kuroppoi 2021-04-20 00:01:11 +02:00
parent fc88e8a501
commit 9eb5037f30

View file

@ -610,11 +610,11 @@ public class Zone {
}
public void setChunksExplored(boolean[] chunksExplored) {
if(chunksExplored.length != width * height) {
if(chunksExplored.length != getChunkCount()) {
return;
}
System.arraycopy(chunksExplored, 0, this.chunksExplored, 0, width * height);
System.arraycopy(chunksExplored, 0, this.chunksExplored, 0, chunksExplored.length);
}
/**