Skip to content

Commit 45be393

Browse files
committed
Respect autoSaveInterval values less than 1
1 parent bda7cfa commit 45be393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public void close(final boolean save, final boolean halt) {
225225
}
226226

227227
void ensureInAutosave(final NewChunkHolder holder) {
228-
if (!this.autoSaveQueue.contains(holder)) {
228+
if (PlatformHooks.get().configAutoSaveInterval(this.world) > 0 && !this.autoSaveQueue.contains(holder)) {
229229
holder.lastAutoSave = this.currentTick;
230230
this.autoSaveQueue.add(holder);
231231
}

0 commit comments

Comments
 (0)