Small Fixes

- onEvent now skips passing the custom event "other_event"
- small error handling for xml lua errors
This commit is contained in:
Robert Jelic
2023-05-07 18:03:08 +02:00
parent 1eddd209f0
commit 5604925e27
2 changed files with 9 additions and 3 deletions

View File

@@ -153,6 +153,9 @@ return function(name, basalt)
end,
sendEvent = function(self, event, ...)
if(event=="other_event")or(event=="custom_event")then
return eventSystem:sendEvent(event, self, ...)
end
return eventSystem:sendEvent(event, self, event, ...)
end,