BedWars1058 icon indicating copy to clipboard operation
BedWars1058 copied to clipboard

spawnLimit in ore gens isnt used right when stacking items

Open IIHERO4 opened this issue 1 year ago • 4 comments

I believe this should be += i.getItemStack().getAmount() instead of ++

https://github.com/andrei1058/BedWars1058/blob/9a0c4380d2f0d2aa4dcb98798d3bea5d158c525b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/arena/OreGenerator.java#L160

IIHERO4 avatar Aug 11 '23 18:08 IIHERO4

Why?

andrei1058 avatar Aug 24 '23 21:08 andrei1058

oh wait, is this related to the stack items option?

andrei1058 avatar Aug 24 '23 21:08 andrei1058

but it only counts drops. I don't get it

andrei1058 avatar Aug 24 '23 21:08 andrei1058

but it only counts drops. I don't get it

Vanilla Minecraft I believe group some items to one item stack, so instead of two entities with amount of 1, it will make 1 entity with amount of 2

To be fair i dont remember if i used a spigot fork or not but when i printed the itemStack.getAmount it wasnt always 1

IIHERO4 avatar Aug 24 '23 21:08 IIHERO4