-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add modded Block/Item/Entity Stats #398
Conversation
How are you handling if a mod manually adds their items to the stat list? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was not tested in full pack; needs error handling
@Caedis Item/Block stats are registered during |
This adds some missing localizations for unlocalized names returned by the ItemStack-insensitive version of `Item.getUnlocalizedName()`. Relevant for the Item/Block stats introduced in GTNewHorizons/Hodgepodge#398. --------- Co-authored-by: Glease <[email protected]>
Block/Items stats are registered by injecting in the GameRegistry methods which register them. Entity stats are registered when the server started. The stat arrays for blocks/items are remapped when the block/item ids change.
Note: block/item stats may not work depending on how the mods override certain functions. This affects craft stats the most.
Other changes:
@WrapWithCondition
v2