From 5ff68ee747658171c320052a28d7ce0d898c2356 Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Sat, 21 Dec 2024 00:37:19 +0100 Subject: [PATCH] Fixed getRecipe parameter type to avoid class error --- .../java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/item/bukkit/src/test/java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java b/item/bukkit/src/test/java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java index bdb4022d..58d4035e 100644 --- a/item/bukkit/src/test/java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java +++ b/item/bukkit/src/test/java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java @@ -42,7 +42,7 @@ void testRegisterAndUnregisterRecipe() { assertNull(getRecipe(key)); } - private static org.bukkit.inventory.Recipe getRecipe(final org.bukkit.NamespacedKey key) { + private static org.bukkit.inventory.Recipe getRecipe(final Object key) { return Bukkit.getRecipesFor(new ItemStack(Material.STONE)).stream() .filter(r -> key.equals(new Refl<>(r).getFieldObject("key"))) .findFirst().orElse(null);