Skip to content

Commit ce92fed

Browse files
committed
Give correct MC/platform info to profiler
1 parent 9eff3e1 commit ce92fed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/src/main/java/org/embeddedt/modernfix/spark/SparkLaunchProfiler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import me.lucko.spark.common.util.MethodDisambiguator;
1818
import me.lucko.spark.lib.adventure.text.Component;
1919
import me.lucko.spark.proto.SparkSamplerProtos;
20+
import net.minecraft.SharedConstants;
2021
import org.embeddedt.modernfix.core.ModernFixMixinPlugin;
2122
import org.embeddedt.modernfix.platform.ModernFixPlatformHooks;
2223

@@ -91,7 +92,7 @@ public Type getType() {
9192

9293
@Override
9394
public String getName() {
94-
return "ModernFix";
95+
return ModernFixPlatformHooks.getPlatformName();
9596
}
9697

9798
@Override
@@ -101,7 +102,7 @@ public String getVersion() {
101102

102103
@Override
103104
public String getMinecraftVersion() {
104-
return "unknown";
105+
return SharedConstants.getCurrentVersion().getName();
105106
}
106107

107108
}

0 commit comments

Comments
 (0)