Skip to content

Commit

Permalink
fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ExDrill committed May 4, 2024
1 parent 7f5390b commit 3791759
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public SmithingMenuMixin(@Nullable MenuType<?> menuType, int i, Inventory invent
if (baseStack.has(DataComponents.BANNER_PATTERNS)) {
bannerStack.set(DataComponents.BANNER_PATTERNS, baseStack.get(DataComponents.BANNER_PATTERNS));
}
player.addItem(bannerStack);
if (!player.addItem(bannerStack)) {
player.spawnAtLocation(bannerStack);
}
}
}

0 comments on commit 3791759

Please sign in to comment.