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:
parent
9a0dfd78d1
commit
b3a9d957a7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user