From 053c9f010932de73ec48975f4e4bab64e805894d Mon Sep 17 00:00:00 2001 From: person1234-ux <76968588+person1234-ux@users.noreply.github.com> Date: Sat, 23 Jan 2021 20:10:17 -0700 Subject: [PATCH] Update the shapedRecipe method so that it not depreciated --- Episode_08/CustomItems.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Episode_08/CustomItems.java b/Episode_08/CustomItems.java index 1b8831b..4947e51 100644 --- a/Episode_08/CustomItems.java +++ b/Episode_08/CustomItems.java @@ -27,7 +27,7 @@ public void customRecipe() { meta.setLore(lore); meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES); item.setItemMeta(meta); -ShapedRecipe r = new ShapedRecipe(item); +ShapedRecipe r = new ShapedRecipe(item.getType().getKey(),item); r.shape("#% ", "#$ ", " $ "); r.setIngredient('#', Material.DIAMOND);