diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/tools/version/VersionData.java b/AreaShop/src/main/java/me/wiefferink/areashop/tools/version/VersionData.java index 6e3291f5..c92d1034 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/tools/version/VersionData.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/tools/version/VersionData.java @@ -42,6 +42,12 @@ public int compareTo(@NotNull VersionData o) { if (patchComp != 0) { return patchComp; } + if (this.preReleaseType == null && o.preReleaseType == null) { + return 0; + } + if (this.preReleaseType == null) { + return 1; + } return this.preReleaseType.compareTo(o.preReleaseType); } }