Meldexun Posted September 9, 2019 Posted September 9, 2019 Hello, I have an item and i attach a ItemStackHandler capability to it. But i have some weird behaviour going on when using it in creative mode (it's a creative mode only item...). Duplication: 1. Right click to open the inventory, place items inside and close it. 2. Right click again to open the inventory, take the items and close it. 3. Press E to open the normal inventory and drop the item to the world. (only when dropping from creative inventory) 4. Pick up the item and open the inventory. 5. You will find the items in it again... Deletion: 1. Right click to open the inventory, place items inside and close it. 2. Press E to open the normal inventory and drop the item to the world. (only when dropping from creative inventory) 3. Pick up the item and open the inventory. 4. You will find no items in it... Github: https://github.com/Meldexun/ChocolateQuestRepoured/tree/master/src/main/java/com/teamcqr/chocolatequestrepoured Direct links to classes on github: Item class: ItemBadge.java Capability provider class: CapabilityItemStackHandlerProvider.java Gui handler class: GuiHandler.java Container class: ContainerBadge.java Gui class: GuiBadge.java Thank you in advance for your help. Quote
Recommended Posts
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.