From 928fd0a444ebe5a1ec6d03ece8b2aa047543d86e Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 15 Sep 2026 03:48:32 -0500 Subject: Load area before checking for signs --- .luacheckrc | 1 - init.lua | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index d57e796..a9d7661 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -6,5 +6,4 @@ globals = { read_globals = { "vector", - "carts", } diff --git a/init.lua b/init.lua index 4505c86..b51175a 100644 --- a/init.lua +++ b/init.lua @@ -122,6 +122,8 @@ for _,mod in ipairs({"vehicle_mash","motorbike","bike","ufos"}) do local obj = self.object local pos = vector.round(obj:get_pos()) local maxradius = tonumber(core.settings:get("cars_despawn.search_radius") or 8) or 8 + local radiusv = vector.new(maxradius,maxradius,maxradius) + core.load_area(pos-radiusv,pos+radiusv) local parked = core.find_node_near(pos,maxradius,"group:parking",true) if not parked then obj:remove() end end -- cgit v1.2.3