Skip to content

Commit

Permalink
Update SlimefunUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 30, 2024
1 parent 961b1e2 commit f3a6003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static boolean isItemSimilar(@Nullable ItemStack item, @Nullable ItemStac
*/
ItemMeta sfItemMeta = sfitem.getItemMeta();
String possibleItemId = Slimefun.getItemDataService().getItemData(itemMeta).orElse(null);
String sfItemId = Slimefun.getItemDataService().getItemData(sfItemMeta).get();
String sfItemId = Slimefun.getItemDataService().getItemData(sfItemMeta).orElse(null);
// Prioritize SlimefunItem id comparison over ItemMeta comparison
if (possibleItemId != null && possibleItemId.equals(sfItemId)) {
/*
Expand Down

0 comments on commit f3a6003

Please sign in to comment.