mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
fixed error in event.ignore that slipped in waaay back in 1fd375f, fixes #44
This commit is contained in:
parent
ad4359f2dd
commit
7e3b157aca
@ -76,7 +76,7 @@ function event.ignore(name, callback)
|
|||||||
if listeners[name][i] == callback then
|
if listeners[name][i] == callback then
|
||||||
table.remove(listeners[name], i)
|
table.remove(listeners[name], i)
|
||||||
if #listeners[name] == 0 then
|
if #listeners[name] == 0 then
|
||||||
list.listeners[name] = nil
|
listeners[name] = nil
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user