From b450910b5a375bdec878325a4b8fbf149196c93e Mon Sep 17 00:00:00 2001 From: Harvels X Date: Mon, 31 Jan 2022 20:14:36 +0300 Subject: [PATCH] Fix meta separator in VersionUtils.toString; --- .../main/java/me/william278/husksync/util/VersionUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/me/william278/husksync/util/VersionUtils.java b/common/src/main/java/me/william278/husksync/util/VersionUtils.java index 590be35d..fe825c63 100644 --- a/common/src/main/java/me/william278/husksync/util/VersionUtils.java +++ b/common/src/main/java/me/william278/husksync/util/VersionUtils.java @@ -53,7 +53,8 @@ public class VersionUtils { for (int version : this.versions) { stringBuffer.append(version).append('.'); } - return stringBuffer.append(this.metadata).toString(); + stringBuffer.deleteCharAt(stringBuffer.length() - 1); + return stringBuffer.append('+').append(this.metadata).toString(); } }