1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-24 20:27:39 +00:00

bit of everything

This commit is contained in:
kepler155c@gmail.com
2017-07-23 22:37:07 -04:00
parent 027f386ed1
commit f8bcf90a6b
30 changed files with 866 additions and 502 deletions

View File

@@ -12,7 +12,7 @@ if not term.isColor() then
detachColor = colors.lightGray
end
Event.addHandler('peripheral', function(event, side)
Event.on('peripheral', function(event, side)
if side then
local dev = Peripheral.addDevice(device, side)
if dev then
@@ -23,7 +23,7 @@ Event.addHandler('peripheral', function(event, side)
end
end)
Event.addHandler('peripheral_detach', function(event, side)
Event.on('peripheral_detach', function(event, side)
if side then
local dev = Util.find(device, 'side', side)
if dev then