Fix onPlaceItemIntoWorld always resetting item stack when in creative mode (#10047)

This commit is contained in:
Martijn van den Brand authored and GitHub committed 2024-07-18 12:43:11 -07:00
1 parent 2844bead6e
commit 520680b037
1 file changed
+1 -2
@@ -491,8 +491,7 @@ public final class ForgeHooks {
}
} else {
// Change the stack to its new content
if (!player.isCreative())
player.setItemInHand(context.getHand(), postUse);
player.setItemInHand(context.getHand(), postUse);
for (BlockSnapshot snap : blockSnapshots) {
int updateFlag = snap.getFlag();