Просмотр исходного кода

修复命名牌配方刷物品bug

00ll00 6 лет назад
Родитель
Сommit
889fb49652

+ 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;
-        target.setDisplayName(newName);
+        target.setDisplayName(newName).setCount(1);
         return target;
     }