catch all throwables in event handlers

This commit is contained in:
ThatGamerBlue
2021-06-23 19:01:33 +01:00
parent 541c8d81b5
commit 1c459084ac
2 changed files with 4 additions and 1 deletions

View File

@@ -215,8 +215,10 @@ public class EventBus
{
subscriber.invoke(event);
}
catch (Exception e)
catch (Throwable e)
{
// here i'd really like to disable the bad plugin,
// but failing that i can't do much...
exceptionHandler.accept(e);
}
}