瀏覽代碼

修复命名牌配方刷物品bug

00ll00 6 年之前
父節點
當前提交
889fb49652
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/main/java/com/hexdragon/blacksmithre/item/name_tag/NameTagRenameRecipe.java

+ 1 - 1
src/main/java/com/hexdragon/blacksmithre/item/name_tag/NameTagRenameRecipe.java

@@ -44,7 +44,7 @@ public class NameTagRenameRecipe extends SpecialRecipe {
         }
         }
         // 设置名称并返回
         // 设置名称并返回
         if (target == null || newName == null) return ItemStack.EMPTY;
         if (target == null || newName == null) return ItemStack.EMPTY;
-        target.setDisplayName(newName);
+        target.setDisplayName(newName).setCount(1);
         return target;
         return target;
     }
     }