diff options
author | embeddedt <42941056+embeddedt@users.noreply.github.com> | 2023-05-24 11:58:58 -0400 |
---|---|---|
committer | embeddedt <42941056+embeddedt@users.noreply.github.com> | 2023-05-24 11:58:58 -0400 |
commit | d808bc5cb39f22121b1ec39b3d41dbf521f28e99 (patch) | |
tree | 0d9d6f6605e25069ae401d0d3e3a25349c25e648 /spark-forge1710/src/main | |
parent | c1b0988d774a623ce785990282caf3ef48c52a46 (diff) | |
download | spark-d808bc5cb39f22121b1ec39b3d41dbf521f28e99.tar.gz spark-d808bc5cb39f22121b1ec39b3d41dbf521f28e99.tar.bz2 spark-d808bc5cb39f22121b1ec39b3d41dbf521f28e99.zip |
Fix 1.7.10 thread dumper
Diffstat (limited to 'spark-forge1710/src/main')
-rw-r--r-- | spark-forge1710/src/main/java/me/lucko/spark/forge/plugin/Forge1710ServerSparkPlugin.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spark-forge1710/src/main/java/me/lucko/spark/forge/plugin/Forge1710ServerSparkPlugin.java b/spark-forge1710/src/main/java/me/lucko/spark/forge/plugin/Forge1710ServerSparkPlugin.java index db9f299..059b684 100644 --- a/spark-forge1710/src/main/java/me/lucko/spark/forge/plugin/Forge1710ServerSparkPlugin.java +++ b/spark-forge1710/src/main/java/me/lucko/spark/forge/plugin/Forge1710ServerSparkPlugin.java @@ -38,7 +38,6 @@ import net.minecraft.server.MinecraftServer; import java.util.List; import java.util.Queue; -import java.util.concurrent.FutureTask; import java.util.stream.Stream; public class Forge1710ServerSparkPlugin extends Forge1710SparkPlugin { @@ -76,7 +75,7 @@ public class Forge1710ServerSparkPlugin extends Forge1710SparkPlugin { super(mod); this.server = server; this.gameThreadDumper = new ThreadDumper.GameThread(); - this.scheduledServerTasks.add(() -> this.gameThreadDumper.setThread(Thread.currentThread())); + this.gameThreadDumper.setThread(Thread.currentThread()); } @Override |