Compare commits

..

No commits in common. "4c2e732607482a31b4fb55b9238504b3e3217f7f" and "3f372d46748c4259bad519261712054f2c207392" have entirely different histories.

2 changed files with 6 additions and 12 deletions

View File

@ -3,7 +3,6 @@ local function copyObject(o)
for k,v in pairs(o) do for k,v in pairs(o) do
obj[k] = v obj[k] = v
end end
setmetatable(obj, getmetatable(o))
return obj return obj
end end
@ -14,12 +13,9 @@ local function execDebug(env)
return false, result[2] return false, result[2]
end end
local func = load("return " .. result[2], "debug", "bt", env) local func = load(result[2], "debug", "bt", env)
if type(func) ~= "function" then if type(func) ~= "function" then
func = load(result[2], "debug", "bt", env) return false, func
if type(func) ~= "function" then
return false, func
end
end end
return pcall(func) return pcall(func)

View File

@ -8,12 +8,10 @@ local ItemStack = Sentinel:tag({}, Sentinel.ITEMSTACK)
ItemStack.__index = ItemStack ItemStack.__index = ItemStack
local function hookDebugger(context) local function hookDebugger(context)
while true do local errorCond = Debugger.debugREPL(function(retval)
local errorCond = Debugger.debugREPL(function(retval) Logger:error("->", retval)
Logger:error("->", retval) end, context)
end, context) Logger:error("x>", errorCond)
Logger:error("x>", errorCond)
end
end end
function ItemStack:fromDetail(inv, detail, slot) function ItemStack:fromDetail(inv, detail, slot)