From b3a9d957a7f1a8942242cf6ea599e5aebb4d9dcc Mon Sep 17 00:00:00 2001 From: Goldfinger Date: Mon, 27 Nov 2017 11:40:09 -0500 Subject: [PATCH] Schedule check once every 60 ticks --- corpse_util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/corpse_util.lua b/corpse_util.lua index 578dec52..ea1b47e2 100644 --- a/corpse_util.lua +++ b/corpse_util.lua @@ -15,6 +15,7 @@ local function mark_corpse(event) end local function remove_corpse_marks() + if game.tick % 60 ~= 0 then return end local tags = global.corpse_util.tags local size = #tags for i = size, 1, -1 do