Skip to content

Commit

Permalink
fix: 23w43a shutdown issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Oct 26, 2023
1 parent 4e3592c commit 40c953e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MixinMinecraftServer {

@Inject(method = "shutdown", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/MinecraftServer;runTasksTillTickEnd()V", shift = At.Shift.BEFORE))
private void shutdownBeforeRunTasks(CallbackInfo ci) {
this.timeReference = Util.getMeasuringTimeMs() + 100L;
this.timeReference = Util.getMeasuringTimeNano() + 100_000_000L; // 100ms
}

}

0 comments on commit 40c953e

Please sign in to comment.