Posted January 30, 20187 yr Alright, so my problem here is that my custom inventory slots aren't saving the items when the gui/container is closed. I'm not too sure where I'll need to save the items. Code:https://github.com/Spyeedy/Custom-Abilities-Test/tree/master/src/main/java/spyeedy/mods/testhero/common/iteminv http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img] Till next time. Thank you for delivering funny scenes to Star Trek as Chekov . Will always remember you
January 30, 20187 yr you create a new inventory in your container, so that you don't modify the old one at all... see your first member variable in your Container
January 30, 20187 yr you have to retrieve a reference to the iteminv you want to modify... Simply pass it from your GUI Handler down to your constructor and from there store it in your member variable...
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.