Skip to content

Commit

Permalink
proper version string
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed Aug 25, 2024
1 parent 95fa45d commit f5c608e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit f5c608e

Please sign in to comment.