Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.12.2] Item duplication/deletion when using Item with ItemStackHandler


Recommended Posts

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.

Link to post
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.

Guest
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.