Skip to content

Commit

Permalink
Never πŸ‘ change πŸ‘ a πŸ‘ running πŸ‘ system
Browse files Browse the repository at this point in the history
- Fixed /fullrecord freezing the game
  • Loading branch information
Scribble authored and Scribble committed May 9, 2022
1 parent 04f9469 commit 7b2ad79
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ public void redirectThreadSleep(long msToTick) {
if (((MinecraftServer) (Object) this).isDedicatedServer()) {
runPendingCommands();
}
synchronized (this.futureTaskQueue) {
while (!this.futureTaskQueue.isEmpty()) {
try {
((FutureTask<?>) this.futureTaskQueue.poll()).run();
} catch (Throwable var9) {
var9.printStackTrace();
}
}
}
}
}
if (TickrateChangerServer.interrupt) {
currentTime = System.currentTimeMillis();
msToTick = 1L;
TickrateChangerServer.interrupt = false;
}
synchronized (this.futureTaskQueue) {
while (!this.futureTaskQueue.isEmpty()) {
try {
((FutureTask<?>) this.futureTaskQueue.poll()).run();
} catch (Throwable var9) {
var9.printStackTrace();
}
}
}

try {
Thread.sleep(1L);
Expand Down

0 comments on commit 7b2ad79

Please sign in to comment.