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