Add #equals method

This commit is contained in:
LeoDog896 2021-07-20 13:58:40 -04:00
parent 4e93e52333
commit 7d55d6db87

View File

@ -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();
}
}