BedWars1058
BedWars1058 copied to clipboard
spawnLimit in ore gens isnt used right when stacking items
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
Why?
oh wait, is this related to the stack items option?
but it only counts drops. I don't get it
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