diff --git a/src/main/java/net/Indyuce/mmoitems/ItemStats.java b/src/main/java/net/Indyuce/mmoitems/ItemStats.java index cb3aa0d1..7c662e06 100644 --- a/src/main/java/net/Indyuce/mmoitems/ItemStats.java +++ b/src/main/java/net/Indyuce/mmoitems/ItemStats.java @@ -103,7 +103,6 @@ public class ItemStats { MAX_DURABILITY = new MaximumDurability(), DURABILITY_BAR = new DurabilityBar(), WILL_BREAK = new LostWhenBroken(), - DURABILITY_BAR = new DurabilityBar(), NAME = new DisplayName(), LORE = new Lore(), NBT_TAGS = new NBTTags(), diff --git a/src/main/java/net/Indyuce/mmoitems/api/recipe/workbench/CustomRecipe.java b/src/main/java/net/Indyuce/mmoitems/api/recipe/workbench/CustomRecipe.java index a7cebfa0..9fe2173e 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/recipe/workbench/CustomRecipe.java +++ b/src/main/java/net/Indyuce/mmoitems/api/recipe/workbench/CustomRecipe.java @@ -222,7 +222,7 @@ public class CustomRecipe implements Comparable { String recipeName = type + "." + id + "." + recipeCount++; // Build Main - ShapedRecipe shapedRecipe = ShapedRecipe.single(recipeName, new ProvidedUIFilter(MMOItemUIFilter.get(), type.getId(), id, template.getCraftedAmount())); + ShapedRecipe shapedRecipe = ShapedRecipe.single(recipeName, new ProvidedUIFilter(MMOItemUIFilter.get(), type.getId(), id, Math.max(template.getCraftedAmount(), 1))); // Make ingredients ShapelessRecipe inputRecipe = new ShapelessRecipe(recipeName, poofs); @@ -326,7 +326,7 @@ public class CustomRecipe implements Comparable { String recipeName = type + "." + id + "." + recipeCount++; // Build Main - ShapedRecipe shapedRecipe = ShapedRecipe.single(recipeName, new ProvidedUIFilter(MMOItemUIFilter.get(), type.getId(), id, template.getCraftedAmount())); + ShapedRecipe shapedRecipe = ShapedRecipe.single(recipeName, new ProvidedUIFilter(MMOItemUIFilter.get(), type.getId(), id, Math.max(template.getCraftedAmount(), 1))); // Make ingredients ShapedRecipe inputRecipe = ShapedRecipe.unsharpen((new ShapedRecipe(recipeName, poofs)));