Shaped and shapeless recipes rework ready

This commit is contained in:
Gunging 2021-03-29 10:13:58 -05:00
parent c4266fb61d
commit 9108b9fd81
2 changed files with 2 additions and 3 deletions

View File

@ -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(),

View File

@ -222,7 +222,7 @@ public class CustomRecipe implements Comparable<CustomRecipe> {
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<CustomRecipe> {
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)));