[Forge] Change compareTo() for commands to fix a Comparable contract issue.

This commit is contained in:
sk89q 2014-07-25 19:35:17 -07:00
parent e93c9c9736
commit 55c569c387

View File

@ -19,7 +19,6 @@
package com.sk89q.worldedit.forge;
import com.sk89q.worldedit.world.registry.BiomeRegistry;
import com.sk89q.worldedit.LocalConfiguration;
import com.sk89q.worldedit.ServerInterface;
import com.sk89q.worldedit.entity.Player;
@ -167,11 +166,11 @@ public String getCommandUsage(ICommandSender icommandsender) {
@Override
public int compareTo(@Nullable Object o) {
if (o == null) {
return -1;
return 0;
} else if (o instanceof ICommand) {
return super.compareTo((ICommand) o);
} else {
return -1;
return 0;
}
}
});