Skip to content

Commit

Permalink
Fix KItemStack clone
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhsu2000 committed Jul 13, 2024
1 parent 913b070 commit d9e4c25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public CustomGUIInventory build(final Player player) {
}
//預覽旗幟
PatternType patternType = BannerUtil.getPatternTypeList().get(patternIndex);
final KItemStack banner = ((KItemStack) baseBannerForPreview.clone())
final KItemStack banner = (new KItemStack(baseBannerForPreview))
.pattern(new Pattern(selectedColorForPreview, patternType));
menu.setItem(i + 19 + (i / 8), banner, new ClickAction(ClickType.LEFT, event -> {
//新增Pattern
Expand Down

0 comments on commit d9e4c25

Please sign in to comment.