Fix running outside dev
This commit is contained in:
parent
8dbcac7afc
commit
99ffd3dc95
|
|
@ -15,7 +15,7 @@ import java.util.function.Function;
|
||||||
|
|
||||||
@Mixin(Minecraft.class)
|
@Mixin(Minecraft.class)
|
||||||
public class MinecraftMixin {
|
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) {
|
private void setLatch(String string, LevelStorageSource.LevelStorageAccess arg, PackRepository arg2, WorldStem arg3, boolean bl, CallbackInfo ci) {
|
||||||
ModernFix.worldLoadSemaphore = new CountDownLatch(1);
|
ModernFix.worldLoadSemaphore = new CountDownLatch(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,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 = "m_261031_", at = @At("HEAD"), remap = false)
|
||||||
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