NamedEvents can now be overwritten, fixed error in validating all types, replaced wiki shortcut

This commit is contained in:
Maruno17
2023-09-10 15:59:14 +01:00
parent efea53aa5a
commit 02e45ebf19
4 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ class NamedEvent
# Adds an event handler procedure from the event.
def add(key, proc)
@callbacks[key] = proc if !@callbacks.has_key?(key)
@callbacks[key] = proc
end
# Removes an event handler procedure from the event.