..
This commit is contained in:
parent
56b777a3dc
commit
c3eeafa4b0
8
init.lua
8
init.lua
@ -254,16 +254,12 @@ local function runSandbox( name)
|
|||||||
basic_robot.data[name].ccounter = 0;
|
basic_robot.data[name].ccounter = 0;
|
||||||
setfenv( ScriptFunc, basic_robot.data[name].sandbox )
|
setfenv( ScriptFunc, basic_robot.data[name].sandbox )
|
||||||
|
|
||||||
-- pcall(
|
|
||||||
-- function()
|
|
||||||
-- debug.sethook(error,"l") -- raises error when next line is called
|
|
||||||
|
|
||||||
local Result, RuntimeError = pcall( ScriptFunc )
|
local Result, RuntimeError = pcall( ScriptFunc )
|
||||||
if RuntimeError then
|
if RuntimeError then
|
||||||
return RuntimeError
|
return RuntimeError
|
||||||
end
|
end
|
||||||
-- end)
|
|
||||||
minetest.chat_send_all("ccounter " .. basic_robot.data[name].ccounter)
|
--minetest.chat_send_all("ccounter " .. basic_robot.data[name].ccounter)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user