Jump to content

Overriden Items show up twice in Creative Inventory


CommodoreAlpha

Recommended Posts

I'm new to Java (and subsequently Forge modding), and I'm testing out some basic stuff, including overriding vanilla items. The code in question is here.

 

I'm noticing that whenever I call the setCreativeTab method on an overriden item (overriden via addSubstitutionAlias method), it shows up twice in the creative inventory. If I don't call it at all, however, it doesn't show up at all. setCreativeTab works just fine with my own mod items.

 

(Using Forge version 10.13.4.1558 for Minecraft 1.7.10)

Link to comment
Share on other sites

I've already tried adding the item to other tabs (and tried overriding items of different IDs - not that I'd expect it to work, but couldn't hurt to try). I've also tried commenting out parts of my code, but it seems the only way to "solve" the issue is to not add it to the creative tab at all or to not override the item at all (adding non-overriden items, i.e. my own items works just fine). Either there's something quirky about setCreativeTab, addSubstitutionAlias, or me just being a noob - I highly doubt it's anything else.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.