mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
Added missing userdata wrapping and removed debug prints.
This commit is contained in:
parent
a19c05442d
commit
ac25db2c0d
@ -344,9 +344,7 @@ local userdataWrapper = {
|
||||
-- reflection when loading again (and then immediately wrap it again).
|
||||
-- Collect wrapped callback methods.
|
||||
[persistKey or "LuaJ"] = function(self)
|
||||
print("start saving userdata " .. tostring(wrappedUserdata[self]))
|
||||
local className, nbt = userdata.save(wrappedUserdata[self])
|
||||
print("done saving userdata")
|
||||
-- The returned closure is what actually gets persisted, including the
|
||||
-- upvalues, that being the classname and a byte array representing the
|
||||
-- nbt data of the userdata value.
|
||||
@ -667,6 +665,7 @@ local function main()
|
||||
error("computer stopped unexpectedly", 0)
|
||||
else
|
||||
args = table.pack(coroutine.yield(result[2])) -- system yielded value
|
||||
wrapUserdata(args)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user