mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-11 16:07:36 +00:00
Improvements
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user