Skip to content

Commit

Permalink
Fixed getRecipe parameter type to avoid class error
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 20, 2024
1 parent 000cc62 commit 5ff68ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ff68ee

Please sign in to comment.