Skip to content

Commit 7b2ad79

Browse files
ScribbleScribble
authored andcommitted
Never 👏 change 👏 a 👏 running 👏 system
- Fixed /fullrecord freezing the game
1 parent 04f9469 commit 7b2ad79

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/de/scribble/lp/tasmod/mixin/MixinMinecraftServer.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,22 @@ public void redirectThreadSleep(long msToTick) {
102102
if (((MinecraftServer) (Object) this).isDedicatedServer()) {
103103
runPendingCommands();
104104
}
105-
synchronized (this.futureTaskQueue) {
106-
while (!this.futureTaskQueue.isEmpty()) {
107-
try {
108-
((FutureTask<?>) this.futureTaskQueue.poll()).run();
109-
} catch (Throwable var9) {
110-
var9.printStackTrace();
111-
}
112-
}
113-
}
114105
}
115106
}
116107
if (TickrateChangerServer.interrupt) {
117108
currentTime = System.currentTimeMillis();
118109
msToTick = 1L;
119110
TickrateChangerServer.interrupt = false;
120111
}
112+
synchronized (this.futureTaskQueue) {
113+
while (!this.futureTaskQueue.isEmpty()) {
114+
try {
115+
((FutureTask<?>) this.futureTaskQueue.poll()).run();
116+
} catch (Throwable var9) {
117+
var9.printStackTrace();
118+
}
119+
}
120+
}
121121

122122
try {
123123
Thread.sleep(1L);

0 commit comments

Comments
 (0)