Skip to content

Commit

Permalink
Catch Throwable since NoClassDefFoundError is an error not an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebuilder2020 committed Aug 5, 2021
1 parent 6c1cd6e commit b802f2a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -264,7 +264,7 @@ public void registerPermissions(FEModuleServerInitEvent event)
try
{
blockName = block.getLocalizedName();
} catch (Exception e) {
} catch (Throwable e) {
blockName = block.getUnlocalizedName();
}
APIRegistry.perms.registerPermission(PERM_BREAK + blockPerm, DefaultPermissionLevel.ALL, "BREAK " + blockName);
Expand Down

0 comments on commit b802f2a

Please sign in to comment.