This commit is contained in:
embeddedt 2023-10-25 14:11:52 -04:00
parent 9830d4d6f7
commit 472ed42f22
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(MinecraftServer.class)
@ClientOnlyMixin
public class ClientMinecraftServerMixin {
@Inject(method = "runServer", at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;getMillis()J", ordinal = 0))
@Inject(method = "runServer", at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;getNanos()J", ordinal = 0))
private void markServerStarted(CallbackInfo ci) {
ModernFixClient.INSTANCE.onServerStarted((MinecraftServer)(Object)this);
}

View File

@ -17,7 +17,7 @@ public class MinecraftServerMixin {
ModernFixFabric.theServer = new WeakReference<>((MinecraftServer)(Object)this);
}
@Inject(method = "runServer", at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;getMillis()J", ordinal = 0))
@Inject(method = "runServer", at = @At(value = "INVOKE", target = "Lnet/minecraft/Util;getNanos()J", ordinal = 0))
private void hookServerStarted(CallbackInfo ci) {
ModernFix.INSTANCE.onServerStarted();
}

View File

@ -5,7 +5,7 @@ junit_version=5.10.0-M1
mixinextras_version=0.2.0-beta.9
mod_id=modernfix
minecraft_version=23w42a
minecraft_version=23w43a
enabled_platforms=fabric
forge_version=1.20.1-47.1.3
# parchment_version=2023.07.09
@ -15,10 +15,10 @@ rei_version=11.0.597
ctm_version=1.20.1-1.1.8+4
kubejs_version=1902.6.0-build.142
rhino_version=1902.2.2-build.268
supported_minecraft_versions=23w42a
supported_minecraft_versions=23w43a
fabric_loader_version=0.14.22
fabric_api_version=0.90.3+1.20.3
fabric_api_version=0.90.5+1.20.3
continuity_version=3.0.0-beta.2+1.19.3