Skip to content

Commit

Permalink
Update LimitedUseItem.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions authored Jul 28, 2024
1 parent faab6dc commit e2974c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ public boolean canStack(ItemMeta itemMetaOne, ItemMeta itemMetaTwo) {
NamespacedKey key = getStorageKey();
int usesLeft1 = PersistentDataAPI.getInt(itemMetaOne, key);
int usesLeft2 = PersistentDataAPI.getInt(itemMetaTwo, key);
return usesLeft1 != -1 && usesLeft1 == usesLeft2;
return usesLeft1 == usesLeft2;
}
}

0 comments on commit e2974c0

Please sign in to comment.