1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Make SlimefunItem#getOptionalByItem static like intended (#4098)

This commit is contained in:
JustAHuman-xD 2024-01-20 15:10:17 -06:00 committed by GitHub
parent c95bcc927f
commit 31c7c4ead6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1199,7 +1199,7 @@ public class SlimefunItem implements Placeable {
* The {@link ItemStack} to check * The {@link ItemStack} to check
* @return The {@link Optional} {@link SlimefunItem} associated with this {@link ItemStack} if present, otherwise empty * @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)); return Optional.ofNullable(getByItem(item));
} }
} }