master
rnd1 2016-11-11 13:37:32 +01:00
parent 56b777a3dc
commit c3eeafa4b0
1 changed files with 2 additions and 6 deletions

View File

@ -254,16 +254,12 @@ local function runSandbox( name)
basic_robot.data[name].ccounter = 0;
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 )
if RuntimeError then
return RuntimeError
end
-- end)
minetest.chat_send_all("ccounter " .. basic_robot.data[name].ccounter)
--minetest.chat_send_all("ccounter " .. basic_robot.data[name].ccounter)
return nil
end