Skip to content

Commit

Permalink
Make SlimefunItem#getOptionalByItem static like intended (#4098)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD authored Jan 20, 2024
1 parent c95bcc9 commit 31c7c4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ public final int hashCode() {
* The {@link ItemStack} to check
* @return The {@link Optional} {@link SlimefunItem} associated with this {@link ItemStack} if present, otherwise empty
*/
public @Nonnull Optional<SlimefunItem> getOptionalByItem(@Nullable ItemStack item) {
public static @Nonnull Optional<SlimefunItem> getOptionalByItem(@Nullable ItemStack item) {
return Optional.ofNullable(getByItem(item));
}
}

0 comments on commit 31c7c4e

Please sign in to comment.