mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Simplified to single ClickHandler call
This commit is contained in:
1 parent
61351c958b
commit
64a8539bc3
1 file changed
+2
-8
@@ -179,14 +179,8 @@ public abstract class CustomActionButton
|
||||
MiraEventManager.InvokeEvent(cancelEvent, cancelEventType);
|
||||
}
|
||||
|
||||
if (specificInvoked)
|
||||
{
|
||||
if (!@event.IsCancelled) ClickHandler();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!genericEvent.IsCancelled) ClickHandler();
|
||||
}
|
||||
MiraCancelableEvent eventCheck = specificInvoked ? @event : genericEvent;
|
||||
if (!eventCheck.IsCancelled) ClickHandler();
|
||||
}));
|
||||
|
||||
if (Keybind == null) return;
|
||||
|
||||
Reference in new issue
Block a user