Slight bugfix, also more code spec alignment

This commit is contained in:
Paul Reilly
2023-05-21 22:11:31 -05:00
parent faca73f99c
commit 5f6e7a153e
16 changed files with 124 additions and 119 deletions

View File

@ -31,7 +31,7 @@ public class EventRegistry
{
if (clazz.isInstance(event))
{
return () -> (T) event;
return () -> clazz.cast(event);
}
}
return null;