Merge pull request #27 from Aleksey-Terzi/master

Fix: reinforcements are not saving into the database each minute
This commit is contained in:
AngrySoundTech
2022-06-04 10:23:22 -04:00
committed by GitHub

View File

@@ -192,14 +192,10 @@ public class ChunkCoord extends XZWCoord {
}
public boolean isChunkLoaded() {
if (this.lastUnloadingTime <= 0) {
//being loaded rn, ignore
return false;
}
if (this.lastUnloadingTime > 0) {
return this.lastUnloadingTime < this.lastLoadingTime;
} else {
return true;
return this.lastLoadingTime > 0;
}
}