We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bdde4b commit 2d5676cCopy full SHA for 2d5676c
core/src/main/java/dev/faststats/core/SimpleMetrics.java
@@ -271,7 +271,9 @@ protected Config(Path file) throws IOException {
271
this.serverId = properties.map(object -> object.getProperty("serverId")).map(string -> {
272
try {
273
var trimmed = string.trim();
274
- return UUID.fromString(trimmed.length() > 36 ? trimmed.substring(0, 36) : trimmed);
+ var corrected = trimmed.length() > 36 ? trimmed.substring(0, 36) : trimmed;
275
+ if (!corrected.equals(string)) saveConfig.set(true);
276
+ return UUID.fromString(corrected);
277
} catch (IllegalArgumentException e) {
278
saveConfig.set(true);
279
return UUID.randomUUID();
gradle.properties
@@ -1 +1 @@
1
-version=0.5.1
+version=0.5.2
0 commit comments