1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-12-26 02:48:06 +11:00

Guess what? More fixes.

This commit is contained in:
20kdc 2018-04-26 13:50:51 +01:00
parent 5004f15c2d
commit f6a13c4038
2 changed files with 7 additions and 4 deletions

View File

@ -54,11 +54,11 @@ nexus = {
nexus.create(40, #txl, ti, function (w, ev, a)
if ev == "line" then
if not pcall(w.span, 1, a, txl[a], 0xFFFFFF, 0) then
everestWindows[dw.id] = nil
everestWindows[w.id] = nil
end
elseif ev == "close" then
w.close()
everestWindows[dw.id] = nil
everestWindows[w.id] = nil
end
end)
end

View File

@ -132,13 +132,13 @@ function wrapMeta(t)
__call = function (_, ...)
return t(...)
end,
__pairs = function (a)
__pairs = function ()
return function (x, key)
local k, v = next(t, k)
if k then return k, wrapMeta(v) end
end, 9, nil
end,
__ipairs = function (a)
__ipairs = function ()
return function (x, key)
key = key + 1
if t[key] then
@ -146,6 +146,9 @@ function wrapMeta(t)
end
end, 9, 0
end,
__len = function ()
return #t
end,
__metatable = uniqueNEOProtectionObject
-- Don't protect this table - it'll make things worse
})