Skip to content

Commit

Permalink
Swallow NoClassDefFoundErrors when reflecting AppleCore_fertlize methods
Browse files Browse the repository at this point in the history
 * Band-aid for a problem that I'm not sure how fix properly (as Reika put it: "I suspect it is because client-side methods are not normally explicitly marked @SideOnly when the parent method is, as that is normally redundant.")
 * Fixes #48
  • Loading branch information
squeek502 committed May 3, 2016
1 parent 9ee4d89 commit b84a213
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/squeek/applecore/asm/Hooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ public static void fireAppleCoreFertilizeEvent(Block block, World world, int x,
renamedFertilize.invoke(block, world, random, x, y, z);
}
}
catch (NoClassDefFoundError e)
{
// swallow this exception, as it can be triggered by @SideOnly annotation issues
// see https://github.com/squeek502/AppleCore/issues/48
}
catch (RuntimeException e)
{
throw e;
Expand Down

1 comment on commit b84a213

@Avarice
Copy link

@Avarice Avarice commented on b84a213 May 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much! ♥

Please sign in to comment.