You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this method is called (by the builder from RFTools Builder for example) the BlockItemUseContext never receive the ItemStack being placed.
So when BlockItem#place is called the BlockItem has no way to know exactly what ItemStack is being placed, this cause issues when the placed block depends on the nbt of the ItemStack.
Suggested fix : Pass the ItemStack to the BlockItemUseContext or at least set it to the Player's main hand. (or both)
The text was updated successfully, but these errors were encountered:
Frinn38
changed the title
ItemStack not passed to BlockItemUseContext when attempting to place block
ItemStack not passed to BlockItemUseContext when attempting to place BlockItem
Jun 22, 2023
When this method is called (by the builder from RFTools Builder for example) the BlockItemUseContext never receive the ItemStack being placed.
So when BlockItem#place is called the BlockItem has no way to know exactly what ItemStack is being placed, this cause issues when the placed block depends on the nbt of the ItemStack.
McJtyLib/src/main/java/mcjty/lib/varia/Tools.java
Lines 75 to 91 in c40223b
Suggested fix : Pass the ItemStack to the BlockItemUseContext or at least set it to the Player's main hand. (or both)
The text was updated successfully, but these errors were encountered: