Skip to content

Commit e1885d1

Browse files
committed
fix(items): add check for PDC
1 parent cb22e71 commit e1885d1

File tree

1 file changed

+5
-0
lines changed
  • dough-items/src/main/java/io/github/bakedlibs/dough/items

1 file changed

+5
-0
lines changed

dough-items/src/main/java/io/github/bakedlibs/dough/items/ItemUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public static boolean canStack(@Nullable ItemStack a, @Nullable ItemStack b) {
115115
return false;
116116
}
117117

118+
// PersistentDataContainer
119+
if (!aMeta.getPersistentDataContainer().equals(bMeta.getPersistentDataContainer())) {
120+
return false;
121+
}
122+
118123
// Display Name
119124
if (aMeta.hasDisplayName() != bMeta.hasDisplayName()) {
120125
return false;

0 commit comments

Comments
 (0)