BlockBOPLeaves drops ItemStack with null ITem
Aaron1011 opened this issue ยท 1 comments
Issue Description:
In BOP for Minecraft 1.8.9, BlockBOPLeaves#getItemDropped can return a null Item
. Since BlockLeaves
does not perform a null check when calling this method, an ItemStack
with a null Item
gets created.
When an EntityItem
is spawned in with the bad ItemStack
, other mods break when expecting a non-null Item
.
Steps to reproduce:
- Place several 'Giant Red Flower Petal' block
- Break the block repeatedly with an axe, until an item drops.
- Observe that the spawned
EntityItem
has anItemStack
with a nullItem
.
Affected Versions (Exact numbers, do not use "latest"):
- Biomes O' Plenty: BiomesOPlenty-1.8.9-3.0.0.1935
- Minecraft: 1.8.9
- Forge: 1763