Skip to content

Commit 0a70a6f

Browse files
authored
Fix Implementation of MCServer$MCCommand.compareTo(Object) (#17)
* Remove compareTo override * This does not actually extend CommandBase...
1 parent 83f0465 commit 0a70a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/minetweaker/mc1710/server/MCServer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public boolean isUsernameIndex(String[] var1, int var2) {
144144

145145
@Override
146146
public int compareTo(Object o) {
147-
return 0;
147+
return this.getCommandName().compareTo(((ICommand) o).getCommandName());
148148
}
149149
}
150150

0 commit comments

Comments
 (0)