1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-11-27 04:48:05 +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) nexus.create(40, #txl, ti, function (w, ev, a)
if ev == "line" then if ev == "line" then
if not pcall(w.span, 1, a, txl[a], 0xFFFFFF, 0) then if not pcall(w.span, 1, a, txl[a], 0xFFFFFF, 0) then
everestWindows[dw.id] = nil everestWindows[w.id] = nil
end end
elseif ev == "close" then elseif ev == "close" then
w.close() w.close()
everestWindows[dw.id] = nil everestWindows[w.id] = nil
end end
end) end)
end end

View File

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