haveric / StackableItems

Minecraft Bukkit plugin that allows you to change the default stack size of items.
22 stars 17 forks source link

Unable to pick up items from ground with >64 stacks in inventory #157

Closed martinambrus closed 3 years ago

martinambrus commented 3 years ago

I set max stacks to 127, I have a full inventory of blocks and a stack of 121 torches. I put a torch on a block, destroy it and I'm unable to pick it up again, even though I only have 120 torches in inventory slot. It should be possible to pick up 7 more torches in this case.

haveric commented 3 years ago

Unfortunately, the EntityPickupItemEvent does not get fired when it thinks the stacks are all full so I have no control over allowing items to be picked up in this instance. The only other solution would require handling all item pickups manually, which would likely be poor on performance and break any other plugins using that API event.

martinambrus commented 3 years ago

Is this similar to why furnaces are unable to smelt more than 64 items, or is that a different issue?

haveric commented 3 years ago

A lot of the game is handled client side and/or not designed for anything above 64, hence the inconsistent behavior.