Skip to content

Commit 5fd3ea6

Browse files
committed
Fix DistinctiveItem#canStack
1 parent 3ea21da commit 5fd3ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public static boolean isItemSimilar(@Nullable ItemStack item, @Nullable ItemStac
355355
* in which case we want to use the method provided to compare
356356
*/
357357
if (checkDistinction && sf_sfitem instanceof DistinctiveItem distinctive && sf_item instanceof DistinctiveItem) {
358-
return distinctive.canStack(sf_sfitem.getItem().getItemMeta(), sf_item.getItem().getItemMeta());
358+
return distinctive.canStack(sfitem.getItemMeta(), item.getItemMeta());
359359
}
360360
return true;
361361
} else if (item.hasItemMeta()) {

0 commit comments

Comments
 (0)