Fix controller stop command bug

This commit is contained in:
Joachim Stolberg 2023-05-14 15:40:45 +02:00
parent d8caf09cf7
commit d5c63a8e56

View File

@ -398,6 +398,7 @@ end
local function call_loop(pos, meta, elapsed)
local t = minetest.get_us_time()
local number = meta:get_string("number")
if meta:get_int("running") == STATE_RUNNING then
if Cache[number] or compile(pos, meta, number) then
local cpu = meta:get_int("cpu") or 0
local code = Cache[number].code
@ -419,6 +420,7 @@ local function call_loop(pos, meta, elapsed)
end
return res
end
end
return false
end