Autosave unmodified chunks only after 4 periods
This commit is contained in:
parent
be83aa26fc
commit
25d6f61aed
@ -261,6 +261,15 @@
|
|||||||
this.worldObj.unloadEntities(this.entityLists[i]);
|
this.worldObj.unloadEntities(this.entityLists[i]);
|
||||||
}
|
}
|
||||||
MinecraftForge.EVENT_BUS.post(new ChunkEvent.Unload(this));
|
MinecraftForge.EVENT_BUS.post(new ChunkEvent.Unload(this));
|
||||||
|
@@ -1015,7 +1161,7 @@
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- else if (this.hasEntities && this.worldObj.getTotalWorldTime() >= this.lastSaveTime + 600L)
|
||||||
|
+ else if (this.hasEntities && this.worldObj.getTotalWorldTime() >= this.lastSaveTime + net.minecraft.server.MinecraftServer.getServer().autosavePeriod * 4) // PaperSpigot - Only save if we've passed 4 auto save intervals without modification
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -1025,7 +1171,7 @@
|
@@ -1025,7 +1171,7 @@
|
||||||
|
|
||||||
public Random getRandomWithSeed(long p_76617_1_)
|
public Random getRandomWithSeed(long p_76617_1_)
|
||||||
|
Loading…
Reference in New Issue
Block a user