Compare commits
No commits in common. "4c2e732607482a31b4fb55b9238504b3e3217f7f" and "3f372d46748c4259bad519261712054f2c207392" have entirely different histories.
4c2e732607
...
3f372d4674
@ -3,7 +3,6 @@ local function copyObject(o)
|
||||
for k,v in pairs(o) do
|
||||
obj[k] = v
|
||||
end
|
||||
setmetatable(obj, getmetatable(o))
|
||||
return obj
|
||||
end
|
||||
|
||||
@ -14,12 +13,9 @@ local function execDebug(env)
|
||||
return false, result[2]
|
||||
end
|
||||
|
||||
local func = load("return " .. result[2], "debug", "bt", env)
|
||||
local func = load(result[2], "debug", "bt", env)
|
||||
if type(func) ~= "function" then
|
||||
func = load(result[2], "debug", "bt", env)
|
||||
if type(func) ~= "function" then
|
||||
return false, func
|
||||
end
|
||||
return false, func
|
||||
end
|
||||
|
||||
return pcall(func)
|
||||
|
@ -8,12 +8,10 @@ local ItemStack = Sentinel:tag({}, Sentinel.ITEMSTACK)
|
||||
ItemStack.__index = ItemStack
|
||||
|
||||
local function hookDebugger(context)
|
||||
while true do
|
||||
local errorCond = Debugger.debugREPL(function(retval)
|
||||
Logger:error("->", retval)
|
||||
end, context)
|
||||
Logger:error("x>", errorCond)
|
||||
end
|
||||
local errorCond = Debugger.debugREPL(function(retval)
|
||||
Logger:error("->", retval)
|
||||
end, context)
|
||||
Logger:error("x>", errorCond)
|
||||
end
|
||||
|
||||
function ItemStack:fromDetail(inv, detail, slot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user