Skip to content

Commit

Permalink
Fix Implementation of MCServer$MCCommand.compareTo(Object) (#17)
Browse files Browse the repository at this point in the history
* Remove compareTo override

* This does not actually extend CommandBase...
  • Loading branch information
glowredman authored Feb 14, 2024
1 parent 83f0465 commit 0a70a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/minetweaker/mc1710/server/MCServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public boolean isUsernameIndex(String[] var1, int var2) {

@Override
public int compareTo(Object o) {
return 0;
return this.getCommandName().compareTo(((ICommand) o).getCommandName());
}
}

Expand Down

0 comments on commit 0a70a6f

Please sign in to comment.