Update to 1.21.3

This commit is contained in:
Moulberry committed 2024-11-14 03:55:01 +01:00
1 parent bc06f67861
commit 8c02fd7430
56 files changed
+609 -573

No files matched your search

@@ -100,9 +100,6 @@ public abstract class MixinMinecraft implements MinecraftExt {
@Shadow
public abstract void setScreen(@Nullable Screen screen);
@Shadow
private ProfilerFiller profiler;
@Shadow
private @Nullable Overlay overlay;
@@ -130,18 +127,10 @@ public abstract class MixinMinecraft implements MinecraftExt {
@Nullable
public LocalPlayer player;
@Shadow
@Final
public ParticleEngine particleEngine;
@Shadow
@Nullable
public Entity cameraEntity;
@Shadow
@Final
public DeltaTracker.Timer timer;
@Inject(method="<init>", at=@At("RETURN"))
public void init(GameConfig gameConfig, CallbackInfo ci) {
ReplayUI.init();
@@ -337,7 +326,6 @@ public abstract class MixinMinecraft implements MinecraftExt {
}
LevelLoadingScreen levelLoadingScreen = new LevelLoadingScreen(this.progressListener.get());
this.setScreen(levelLoadingScreen);
this.profiler.push("waitForServer");
while (!this.singleplayerServer.isReady() || this.overlay != null) {
levelLoadingScreen.tick();
this.runTick(false);
@@ -348,7 +336,6 @@ public abstract class MixinMinecraft implements MinecraftExt {
}
this.handleDelayedCrash();
}
this.profiler.pop();
Duration duration = Duration.between(instant, Instant.now());
SocketAddress socketAddress = this.singleplayerServer.getConnection().startMemoryChannel();
Connection connection = Connection.connectToLocalServer(socketAddress);