Give correct MC/platform info to profiler
This commit is contained in:
parent
9eff3e1aa9
commit
ce92fedf09
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user