Fix running outside dev

This commit is contained in:
embeddedt 2023-04-15 15:51:44 -04:00
parent 8dbcac7afc
commit 99ffd3dc95
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import java.util.function.Function;
@Mixin(Minecraft.class)
public class MinecraftMixin {
@Inject(method = "doWorldLoad", at = @At("HEAD"), remap = false)
@Inject(method = "m_261031_", at = @At("HEAD"), remap = false)
private void setLatch(String string, LevelStorageSource.LevelStorageAccess arg, PackRepository arg2, WorldStem arg3, boolean bl, CallbackInfo ci) {
ModernFix.worldLoadSemaphore = new CountDownLatch(1);
}

View File

@ -34,7 +34,7 @@ public class MinecraftMixin {
ModernFix.LOGGER.warn("Datapack reload took " + timeSpentReloading + " seconds.");
}
*/
@Inject(method = "doWorldLoad", at = @At("HEAD"), remap = false)
@Inject(method = "m_261031_", at = @At("HEAD"), remap = false)
private void recordWorldLoadStart(CallbackInfo ci) {
ModernFixClient.worldLoadStartTime = System.nanoTime();
}