mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-17 08:05:25 +01:00
Add #equals method
This commit is contained in:
parent
4e93e52333
commit
7d55d6db87
@ -33,4 +33,11 @@ public class VanillaStackingRule implements StackingRule {
|
||||
public int getMaxSize(@NotNull ItemStack itemStack) {
|
||||
return itemStack.getMaterial().getMaxDefaultStackSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) return true;
|
||||
|
||||
return obj != null && getClass() == obj.getClass();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user