ignore all interactive handlers when editor is open

This commit is contained in:
Kartik K. Agaram 2023-11-24 21:14:41 -08:00
parent ec034bb758
commit ddd47fc1e4
1 changed files with 5 additions and 3 deletions

View File

@ -3,10 +3,12 @@ populate_missing_handlers = function()
if on[handler_name] == nil then
-- make it available to scripts
on[handler_name] = function(...)
if car[handler_name] then
call_protected(car[handler_name], ...)
if not Show_code then
if car[handler_name] then
call_protected(car[handler_name], ...)
end
end
end
end
end
end
end