From f5c608ebe2d3c8742056d93ed8023931b0c86924 Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Sun, 25 Aug 2024 19:53:30 +0200 Subject: [PATCH] proper version string --- .../main/java/me/lucko/spark/geyser/GeyserPlatformInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spark-geyser/src/main/java/me/lucko/spark/geyser/GeyserPlatformInfo.java b/spark-geyser/src/main/java/me/lucko/spark/geyser/GeyserPlatformInfo.java index 79813e97..5cd49b16 100644 --- a/spark-geyser/src/main/java/me/lucko/spark/geyser/GeyserPlatformInfo.java +++ b/spark-geyser/src/main/java/me/lucko/spark/geyser/GeyserPlatformInfo.java @@ -22,6 +22,7 @@ import me.lucko.spark.common.platform.PlatformInfo; +import org.geysermc.api.util.ApiVersion; import org.geysermc.geyser.api.GeyserApi; public class GeyserPlatformInfo implements PlatformInfo { @@ -43,7 +44,8 @@ public String getName() { @Override public String getVersion() { - return geyserApi.geyserApiVersion().toString(); + ApiVersion version = geyserApi.geyserApiVersion(); + return version.human() + "." + version.major() + "." + version.minor(); } @Override