Jump to content

Recommended Posts

Posted

good days

 

i have an anoying issue

normaly i remove an item from the inventory using

 

Item ap=Items.applet;

playerIn.inventory.consumeInventoryItem(app);

 

but that just remove an unity from the stack

 

so to remove a complete stack i create a null item named  itemvacio

replace the complete stack whit a stak of one single itemvacio

 

and then consume the itemvacio whith

playerIn.inventory.consumeInventoryItem(MercenaryModItems.itemvacio);

 

but there comes the pain

has happen whith mi itemvacio and whith mi others custome bullets

 

at the remove whith consumeInventoryItem event  it lets behind and stack of zero items

and gets stuck in inventory, i cant throw it whit q, i cant muve it whith the mouse

the only way is put over another itemvacio to make the stack go up to one then it behaves again normaly 

 

this way to delete stacks has this bug

there is another way of removing a full stack ?

or at lest a way to make minecraft get ride of this staks of zero items

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.