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 baf68a6 commit 74718beCopy full SHA for 74718be
src/main/java/org/spongepowered/api/MinecraftVersion.java
@@ -73,4 +73,12 @@ public interface MinecraftVersion extends Comparable<MinecraftVersion> {
73
*/
74
OptionalInt dataVersion();
75
76
+ @Override
77
+ default int compareTo(MinecraftVersion o) {
78
+ final int result = Boolean.compare(this.isLegacy(), o.isLegacy());
79
+ if (result != 0) {
80
+ return result;
81
+ }
82
+ return this.protocolVersion() - o.protocolVersion();
83
84
}
0 commit comments