Skip to content

Commit 5ff68ee

Browse files
committed
Fixed getRecipe parameter type to avoid class error
1 parent 000cc62 commit 5ff68ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

item/bukkit/src/test/java/it/fulminazzo/yagl/items/BukkitRecipeItemImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void testRegisterAndUnregisterRecipe() {
4242
assertNull(getRecipe(key));
4343
}
4444

45-
private static org.bukkit.inventory.Recipe getRecipe(final org.bukkit.NamespacedKey key) {
45+
private static org.bukkit.inventory.Recipe getRecipe(final Object key) {
4646
return Bukkit.getRecipesFor(new ItemStack(Material.STONE)).stream()
4747
.filter(r -> key.equals(new Refl<>(r).getFieldObject("key")))
4848
.findFirst().orElse(null);

0 commit comments

Comments
 (0)