Make receptor_on/off overwritable, fix a serious bug.

This commit is contained in:
Novatux
2014-01-11 20:03:37 +01:00
parent c8ef37f522
commit fe50e87da1
2 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ function mesecon.queue:add_action(pos, func, params, time, overwritecheck, prior
end
if (toremove ~= nil) then
table.remove(mesecon.queue.actions, i)
table.remove(mesecon.queue.actions, toremove)
end
table.insert(mesecon.queue.actions, action)