mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix onPlaceItemIntoWorld always resetting item stack when in creative mode (#10047)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user