tterrag1098 / Registrate

Your mod's best friend - keep your registry objects simple and organized
Mozilla Public License 2.0
117 stars 33 forks source link

[Bug] Item CreativeModeTabModifier callback missing reference to Item being constructed #56

Closed ApexModder closed 1 year ago

ApexModder commented 1 year ago

when using the following method, you are not given a reference to the current item being constructed in the callback.

https://github.com/tterrag1098/Registrate/blob/d5f97f5a105164276e2d287b08735659881ba3db/src/main/java/com/tterrag/registrate/builders/ItemBuilder.java#L138-L141

This means it is not possible to add the item to the creative mode tab via this callback.

Example showcasing attempt to add item to OP_BLOCKS tab only when player has permission, missing reference to be able to call the needed .accept() method.

image

tterrag1098 commented 1 year ago

Merged