From 1de3c33286398944e3574267ec01911ed5e815e4 Mon Sep 17 00:00:00 2001 From: person1234-ux <76968588+person1234-ux@users.noreply.github.com> Date: Sat, 23 Jan 2021 20:46:06 -0700 Subject: [PATCH] Updated depreciated so that they work on `1.16 properly --- Episode_08/CustomItems.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Episode_08/CustomItems.java b/Episode_08/CustomItems.java index 1b8831b..39da0b4 100644 --- a/Episode_08/CustomItems.java +++ b/Episode_08/CustomItems.java @@ -27,14 +27,13 @@ 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); r.setIngredient('%', Material.IRON_INGOT); r.setIngredient('$', Material.STICK); - -plugin.getServer().addRecipe(r); +Bukkit.addRecipe(r); } @@ -45,6 +44,6 @@ public void unshaped(){ slr.addIngredient(3,Material.LAVA_BUCKET); slr.addIngredient(3, Material.FLINT); -plugin.getServer().addRecipe(slr); +Bukkit.addRecipe(slr); } }