Skip to content

Commit 330fd31

Browse files
committed
Always use ItemDataService, as we can't do the instanceof check
1 parent b646376 commit 330fd31

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,14 +1210,8 @@ public final int hashCode() {
12101210
return null;
12111211
}
12121212

1213-
if (item instanceof SlimefunItemStack stack) {
1214-
return getById(stack.getItemId());
1215-
}
1216-
12171213
Optional<String> itemID = Slimefun.getItemDataService().getItemData(item);
1218-
12191214
return itemID.map(SlimefunItem::getById).orElse(null);
1220-
12211215
}
12221216

12231217
/**

0 commit comments

Comments
 (0)