Give correct MC/platform info to profiler

This commit is contained in:
embeddedt 2023-06-26 14:24:37 -04:00
parent 9eff3e1aa9
commit ce92fedf09
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -17,6 +17,7 @@ import me.lucko.spark.common.sampler.node.MergeMode;
import me.lucko.spark.common.util.MethodDisambiguator; import me.lucko.spark.common.util.MethodDisambiguator;
import me.lucko.spark.lib.adventure.text.Component; import me.lucko.spark.lib.adventure.text.Component;
import me.lucko.spark.proto.SparkSamplerProtos; import me.lucko.spark.proto.SparkSamplerProtos;
import net.minecraft.SharedConstants;
import org.embeddedt.modernfix.core.ModernFixMixinPlugin; import org.embeddedt.modernfix.core.ModernFixMixinPlugin;
import org.embeddedt.modernfix.platform.ModernFixPlatformHooks; import org.embeddedt.modernfix.platform.ModernFixPlatformHooks;
@ -91,7 +92,7 @@ public class SparkLaunchProfiler {
@Override @Override
public String getName() { public String getName() {
return "ModernFix"; return ModernFixPlatformHooks.getPlatformName();
} }
@Override @Override
@ -101,7 +102,7 @@ public class SparkLaunchProfiler {
@Override @Override
public String getMinecraftVersion() { public String getMinecraftVersion() {
return "unknown"; return SharedConstants.getCurrentVersion().getName();
} }
} }