From f17f70cd5500fe215b1d36120d295cb6e71536ff Mon Sep 17 00:00:00 2001 From: ishland Date: Thu, 9 Nov 2023 12:34:00 +0800 Subject: [PATCH] build: 23w45a --- .../opts/scheduling/mixin/shutdown/MixinMinecraftServer.java | 5 +++-- gradle.properties | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/c2me-opts-scheduling/src/main/java/com/ishland/c2me/opts/scheduling/mixin/shutdown/MixinMinecraftServer.java b/c2me-opts-scheduling/src/main/java/com/ishland/c2me/opts/scheduling/mixin/shutdown/MixinMinecraftServer.java index 00d194029..3072f74cc 100644 --- a/c2me-opts-scheduling/src/main/java/com/ishland/c2me/opts/scheduling/mixin/shutdown/MixinMinecraftServer.java +++ b/c2me-opts-scheduling/src/main/java/com/ishland/c2me/opts/scheduling/mixin/shutdown/MixinMinecraftServer.java @@ -11,11 +11,12 @@ @Mixin(MinecraftServer.class) public class MixinMinecraftServer { - @Shadow(aliases = "field_47139") private long timeReference; + @Shadow + private long tickStartTimeNanos; @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.getMeasuringTimeNano() + 100_000_000L; // 100ms + this.tickStartTimeNanos = Util.getMeasuringTimeNano() + 50_000_000L; // 50ms } } diff --git a/gradle.properties b/gradle.properties index 4fde00f0e..4fbce35a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,8 +4,8 @@ org.gradle.parallel=true fabric.loom.multiProjectOptimisation=true # Fabric Properties # check these on https://fabricmc.net/versions.html -minecraft_version=23w43a -yarn_mappings=23w43a+build.2 +minecraft_version=23w45a +yarn_mappings=23w45a+build.1 loader_version=0.14.24 # Mod Properties mod_version=0.2.0+alpha.11