Skip to content

Add a check to make sure that a ground item isn't spawned above the set stack limit #60

@Mikedeejay2

Description

@Mikedeejay2

Relatively self-explanatory.

Currently, items aren't checked before they are spawned into the world. This could potentially pose issues with constraining the max stack amount for an item. For example, if somebody made ender pearls stack to 1 and killed an enderman with a looting sword, the enderman could drop more than 1 enderpearl in a single stack. The player would then be able to pick up the stack of ender pearls and end up with a stack of 2 or more ender pearls in a single stack.

Another issue I tend to see is ground items that are too large being picked up by players and the players ending up with a stack of items that shouldn't be possible given the current configuration settings.

Adding checks on item pickup and on item spawn would make sure that the item stack constraints are always true.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions