materials.add(current);
current = new ArrayList<Material>();
cntr = 0;
}
}
RecipeManager recipeManager = VanillaPlugin.getInstance().getEngine().getRecipeManager();
Collections.reverse(materials);
Recipe recipe = recipeManager.matchShapedRecipe(materials);
if (recipe == null) {
recipe = recipeManager.matchShapelessRecipe(shapeless);
}
if (recipe != null) {
updateCraftingSlot(recipe.getResult());
return;
}