Skip to content

Commit

Permalink
build: 23w45a
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Nov 9, 2023
1 parent 40c953e commit f17f70c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f17f70c

Please sign in to comment.