small changes
This commit is contained in:
@@ -1336,6 +1336,9 @@ function lib.getENV(fspath, term_override, perms)
|
||||
global.peripheral.call = function () end
|
||||
global.peripheral.getMethods = function () end
|
||||
end
|
||||
if repo and perms.repo then
|
||||
global.repo = repo
|
||||
end
|
||||
global.settings = settings
|
||||
global._ENV = global
|
||||
global._G = global
|
||||
|
||||
@@ -170,7 +170,7 @@ local function process()
|
||||
end
|
||||
end
|
||||
for k,v in pairs(apps) do
|
||||
if (v.filter == nil or v.filter == event[1]) and v ~= focusedapp and event[1] ~= "mouse_click" and event[1] ~= "mouse_up" and event[1] ~= "mouse_drag" and event[1] ~= "mouse_scroll" then
|
||||
if (v.filter == nil or v.filter == event[1]) and v ~= focusedapp and event[1] ~= "mouse_click" and event[1] ~= "mouse_up" and event[1] ~= "mouse_drag" and event[1] ~= "mouse_scroll" and event[1] ~= "char" and event[1] ~= "key" and event[1] ~= "key_up" then
|
||||
local success, content = coroutine.resume(v.co,table.unpack(event))
|
||||
if success then
|
||||
v.filter = content
|
||||
|
||||
Reference in New Issue
Block a user