We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c227733 commit afc58efCopy full SHA for afc58ef
1 file changed
spark-common/src/main/java/me/lucko/spark/common/command/sender/AbstractCommandSender.java
@@ -34,7 +34,7 @@ protected Object getObjectForComparison() {
34
@Override
35
public boolean equals(Object o) {
36
if (this == o) return true;
37
- if (o == null || getClass() != o.getClass()) return false;
+ if (!(o instanceof AbstractCommandSender)) return false;
38
AbstractCommandSender<?> that = (AbstractCommandSender<?>) o;
39
return this.getObjectForComparison().equals(that.getObjectForComparison());
40
}
0 commit comments