diff options
author | Luck <git@lucko.me> | 2022-07-17 12:19:03 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2022-07-17 12:19:03 +0100 |
commit | 319aae27ad290338a5558ac53517e144254a86ce (patch) | |
tree | 208b8fb265976c4dc2869d4213d4c62838825f6c /spark-fabric/src/main/java/me | |
parent | 06de991f44f3f0f33eed21fb92224a395a2a92ff (diff) | |
download | spark-319aae27ad290338a5558ac53517e144254a86ce.tar.gz spark-319aae27ad290338a5558ac53517e144254a86ce.tar.bz2 spark-319aae27ad290338a5558ac53517e144254a86ce.zip |
Fix fabric client startup error
Diffstat (limited to 'spark-fabric/src/main/java/me')
-rw-r--r-- | spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java index 19d0707..0ef6620 100644 --- a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java +++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java @@ -59,12 +59,12 @@ public class FabricClientSparkPlugin extends FabricSparkPlugin implements Comman } private final MinecraftClient minecraft; - private final ThreadDumper gameThreadDumper; + private final ThreadDumper.GameThread gameThreadDumper; public FabricClientSparkPlugin(FabricSparkMod mod, MinecraftClient minecraft) { super(mod); this.minecraft = minecraft; - this.gameThreadDumper = new ThreadDumper.Specific(((MinecraftClientAccessor) minecraft).getThread()); + this.gameThreadDumper = new ThreadDumper.GameThread(() -> ((MinecraftClientAccessor) minecraft).getThread()); } @Override @@ -124,7 +124,7 @@ public class FabricClientSparkPlugin extends FabricSparkPlugin implements Comman @Override public ThreadDumper getDefaultThreadDumper() { - return this.gameThreadDumper; + return this.gameThreadDumper.get(); } @Override |