From 6665cdcf4e137380770df4264247ef6beb373cc6 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 4 May 2026 09:26:36 -0700 Subject: [PATCH] Fix misaligned ClientLevel load patch --- .../client/multiplayer/ClientLevel.java.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/patches/minecraft/net/minecraft/client/multiplayer/ClientLevel.java.patch b/patches/minecraft/net/minecraft/client/multiplayer/ClientLevel.java.patch index 05675df8bf..984b6e8835 100644 --- a/patches/minecraft/net/minecraft/client/multiplayer/ClientLevel.java.patch +++ b/patches/minecraft/net/minecraft/client/multiplayer/ClientLevel.java.patch @@ -17,15 +17,15 @@ public void handleBlockChangedAck(final int sequence) { if (SharedConstants.DEBUG_BLOCK_BREAK) { -@@ -273,6 +_,8 @@ - - update.run(); - } +@@ -243,6 +_,8 @@ + this.serverSimulationDistance = serverSimulationDistance; + this.environmentAttributes = this.addEnvironmentAttributeLayers(EnvironmentAttributeSystem.builder()).build(); + this.updateSkyBrightness(); + this.gatherCapabilities(); + net.minecraftforge.event.ForgeEventFactory.onLevelLoad(this); } - public @Nullable EndFlashState endFlashState() { + private EnvironmentAttributeSystem.Builder addEnvironmentAttributeLayers(final EnvironmentAttributeSystem.Builder environmentAttributes) { @@ -352,6 +_,7 @@ entity.setOldPosAndRot(); entity.tickCount++;