Skip to content

Fix NoClassDefFoundError for Tinkers' Construct integration#55

Open
THOMASS47 wants to merge 1 commit into
GTNewHorizons:masterfrom
THOMASS47:master
Open

Fix NoClassDefFoundError for Tinkers' Construct integration#55
THOMASS47 wants to merge 1 commit into
GTNewHorizons:masterfrom
THOMASS47:master

Conversation

@THOMASS47

Copy link
Copy Markdown

Summary

When crafting without Tinkers' Construct installed the game would crash due to trying to use tconstruct.library.modifier.IModifyable and tconstruct.library.tools.AbilityHelper in SlotCraftResult.java.
For IModifyable I have changed it to use reflection in new helper methods in TinkersUtils.java.
As for AbilityHelper.random i replaced it with the world standard Random instance.
Tested it both with and without Tinkers' Construct installed.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant