trentech / StackBan

MIT License
4 stars 12 forks source link

ItemStack.Builder#fromBlockSnapshot is called without checking if the snapshot has an ItemType #2

Closed Aaron1011 closed 8 years ago

Aaron1011 commented 8 years ago

In several event listeners, such as this one, ItemStack.Builder#fromBlockSnapshot without first ensuring that the BlockSnapshot being used has a corresponding ItemType. This leads to an exception being thrown by the builder whenever a block without an item is placed (e.g. water).