!recipes are no longer grouped

(Recipe.setGroup(String) did not do what I thought it would)
This commit is contained in:
ASangarin 2020-09-22 19:00:33 +02:00
parent 2a346d44b1
commit 534ee455c0

View File

@ -130,14 +130,12 @@ public class CustomRecipe implements Comparable<CustomRecipe> {
Recipe recipe;
if (shapeless) {
ShapelessRecipe r = new ShapelessRecipe(key, getResult(null));
r.setGroup("mmoitems");
for (WorkbenchIngredient ingredient : ingredients.values())
if (!(ingredient instanceof AirIngredient))
r.addIngredient(ingredient.toBukkit());
recipe = r;
} else {
ShapedRecipe r = new ShapedRecipe(key, getResult(null));
r.setGroup("mmoitems");
char[] characters = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'};
List<Integer> list = new ArrayList<>(ingredients.keySet());
StringBuilder firstRow = new StringBuilder();