1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-12 02:28:02 +02:00

Schedule check once every 60 ticks

This commit is contained in:
Goldfinger 2017-11-27 11:40:09 -05:00 committed by Maik Wild
parent 9a0dfd78d1
commit b3a9d957a7

View File

@ -15,6 +15,7 @@ local function mark_corpse(event)
end end
local function remove_corpse_marks() local function remove_corpse_marks()
if game.tick % 60 ~= 0 then return end
local tags = global.corpse_util.tags local tags = global.corpse_util.tags
local size = #tags local size = #tags
for i = size, 1, -1 do for i = size, 1, -1 do