Fix mixin
This commit is contained in:
parent
a06a46b498
commit
ada0bd4012
|
|
@ -26,7 +26,7 @@ public class MinecraftMixin {
|
||||||
ModernFix.LOGGER.warn("Datapack reload took " + timeSpentReloading + " seconds.");
|
ModernFix.LOGGER.warn("Datapack reload took " + timeSpentReloading + " seconds.");
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
@Inject(method = "doWorldLoad", at = @At("HEAD"), remap = false)
|
@Inject(method = "doWorldLoad", at = @At("HEAD"))
|
||||||
private void recordWorldLoadStart(CallbackInfo ci) {
|
private void recordWorldLoadStart(CallbackInfo ci) {
|
||||||
ModernFixClient.worldLoadStartTime = System.nanoTime();
|
ModernFixClient.worldLoadStartTime = System.nanoTime();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
@Mixin(Minecraft.class)
|
@Mixin(Minecraft.class)
|
||||||
@ClientOnlyMixin
|
@ClientOnlyMixin
|
||||||
public class MinecraftMixin_Forge {
|
public class MinecraftMixin_Forge {
|
||||||
@Inject(method = "doWorldLoad", at = @At("HEAD"), remap = false)
|
@Inject(method = "doWorldLoad", at = @At("HEAD"))
|
||||||
private void recordWorldLoadStart(CallbackInfo ci) {
|
private void recordWorldLoadStart(CallbackInfo ci) {
|
||||||
ModernFixClient.worldLoadStartTime = System.nanoTime();
|
ModernFixClient.worldLoadStartTime = System.nanoTime();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user