fix up saving indicator
This commit is contained in:
parent
89adfc8cb4
commit
97f91fb298
|
@ -2,6 +2,7 @@ local self = {}
|
||||||
|
|
||||||
local binser = require('stdlib.binser')
|
local binser = require('stdlib.binser')
|
||||||
require('stdlib.util')
|
require('stdlib.util')
|
||||||
|
local scheduler = require('stdlib.scheduler')
|
||||||
|
|
||||||
local savedataName
|
local savedataName
|
||||||
local savedata = {
|
local savedata = {
|
||||||
|
@ -158,6 +159,11 @@ function self.save(instant)
|
||||||
uranium:call('saveFinished')
|
uranium:call('saveFinished')
|
||||||
else
|
else
|
||||||
self.saveNextFrame = true
|
self.saveNextFrame = true
|
||||||
|
scheduler:scheduleInTicks(2, function()
|
||||||
|
self.saveNextFrame = false
|
||||||
|
PROFILEMAN:SaveMachineProfile()
|
||||||
|
uranium:call('saveFinished')
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -177,15 +183,6 @@ function uranium.init()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function uranium.update()
|
|
||||||
if self.saveNextFrame then
|
|
||||||
self.saveNextFrame = false
|
|
||||||
PROFILEMAN:SaveMachineProfile()
|
|
||||||
uranium:call('saveFinished')
|
|
||||||
print('saved to profile')
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function self.enableAutosave()
|
function self.enableAutosave()
|
||||||
checkIfInitialized()
|
checkIfInitialized()
|
||||||
function uranium.exit()
|
function uranium.exit()
|
||||||
|
|
Loading…
Reference in New Issue