Fix potential unhandled exception

This commit is contained in:
Stephen Seo 2022-09-01 21:57:04 +09:00
parent e2e7254f1d
commit c41938ada2

View file

@ -73,6 +73,8 @@ public class OtherModHandler {
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), InvocationTargetException!");
} catch (IllegalAccessException e) {
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), IllegalAccessException!");
} catch (ClassCastException e) {
TurnBasedMinecraftMod.logger.warn("Failed to cast NpcAPI.events(), ClassCastException!");
}
if (customNPCsEventBus == null) {
break;