throttlee

This commit is contained in:
kepler155c@gmail.com
2017-05-14 00:53:59 -04:00
parent c34b46699b
commit 9a0c584cba
3 changed files with 20 additions and 8 deletions

View File

@@ -541,9 +541,7 @@ function Builder:getGenericSupplyList(blockIndex)
end
function Builder:substituteBlocks()
local spinner = UI.Spinner({
spinSymbols = { '' }
})
local throttle = Util.throttle()
for _,b in pairs(schematic.blocks) do
@@ -560,7 +558,7 @@ function Builder:substituteBlocks()
b.dmg = sub.sdmg
end
spinner:spin()
throttle()
end
end