tapestry is decoded and itemised just fine but does not spawn

This commit is contained in:
minjaesong
2022-02-28 15:34:48 +09:00
parent 68d8bf13b7
commit e8330af14a
12 changed files with 191 additions and 128 deletions

View File

@@ -727,7 +727,7 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
/** RENDER CODE GOES HERE */
measureDebugTime("Ingame.Render") { renderGame() }
val autosaveInterval = App.getConfigInt("autosaveinterval") / 1000f
val autosaveInterval = App.getConfigInt("autosaveinterval").coerceAtLeast(60000) / 1000f
if (autosaveTimer >= autosaveInterval) {
queueAutosave()
autosaveTimer -= autosaveInterval