Fix controller stop command bug
This commit is contained in:
parent
d8caf09cf7
commit
d5c63a8e56
@ -398,6 +398,7 @@ end
|
|||||||
local function call_loop(pos, meta, elapsed)
|
local function call_loop(pos, meta, elapsed)
|
||||||
local t = minetest.get_us_time()
|
local t = minetest.get_us_time()
|
||||||
local number = meta:get_string("number")
|
local number = meta:get_string("number")
|
||||||
|
if meta:get_int("running") == STATE_RUNNING then
|
||||||
if Cache[number] or compile(pos, meta, number) then
|
if Cache[number] or compile(pos, meta, number) then
|
||||||
local cpu = meta:get_int("cpu") or 0
|
local cpu = meta:get_int("cpu") or 0
|
||||||
local code = Cache[number].code
|
local code = Cache[number].code
|
||||||
@ -419,6 +420,7 @@ local function call_loop(pos, meta, elapsed)
|
|||||||
end
|
end
|
||||||
return res
|
return res
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user