Fix potential unhandled exception
This commit is contained in:
parent
e2e7254f1d
commit
c41938ada2
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ public class OtherModHandler {
|
||||||
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), InvocationTargetException!");
|
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), InvocationTargetException!");
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), IllegalAccessException!");
|
TurnBasedMinecraftMod.logger.warn("Failed to invoke NpcAPI.events(), IllegalAccessException!");
|
||||||
|
} catch (ClassCastException e) {
|
||||||
|
TurnBasedMinecraftMod.logger.warn("Failed to cast NpcAPI.events(), ClassCastException!");
|
||||||
}
|
}
|
||||||
if (customNPCsEventBus == null) {
|
if (customNPCsEventBus == null) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue