Improvements

This commit is contained in:
Connor Colenso committed 2023-10-21 21:35:48 +01:00
1 parent dce4f6eada
commit 656b839f6a
4 files changed
+13 -9

No files matched your search

@@ -17,9 +17,10 @@ public class ItemStackKey {
@Override
public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
ItemStackKey that = (ItemStackKey) o;
return (this.meta == that.meta) && Objects.equals(this.item, that.item);
if (o == null) return false;
if (o instanceof ItemStackKey that) {
return (this.meta == that.meta) && (this.item == that.item);
} else return false;
}
@Override