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).
In several event listeners, such as this one,
ItemStack.Builder#fromBlockSnapshot
without first ensuring that theBlockSnapshot
being used has a correspondingItemType
. This leads to an exception being thrown by the builder whenever a block without an item is placed (e.g. water).