Skip to content

Commit 3bf3179

Browse files
fix MC-298225
1 parent e4c2c56 commit 3bf3179

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

PATCHED.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| Basic | [MC-217716](https://bugs.mojang.com/browse/MC-217716) | The green nausea overlay isn't removed when switching into spectator mode |
2929
| Basic | [MC-231097](https://bugs.mojang.com/browse/MC-231097) | Holding the "Use" button continues to slow down the player even after the used item has been dropped |
3030
| Basic | [MC-237493](https://bugs.mojang.com/browse/MC-237493) | Telemetry cannot be disabled |
31+
| Basic | [MC-298225](https://bugs.mojang.com/browse/MC-298225) | Shapes appear in the end sky with certain distance settings |
3132

3233
### Server Side (Both)
3334
| Type | Bug ID | Name |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package dev.isxander.debugify.client.mixins.basic.mc298225;
2+
3+
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
4+
import dev.isxander.debugify.fixes.BugFix;
5+
import dev.isxander.debugify.fixes.FixCategory;
6+
import net.minecraft.client.renderer.GameRenderer;
7+
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.injection.At;
9+
10+
@BugFix(id = "MC-298225", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, modConflicts = "smoothskies", description = "Shapes appear in the end sky with certain distance settings")
11+
@Mixin(GameRenderer.class)
12+
public class GameRendererMixin {
13+
@ModifyReturnValue(method = "getDepthFar", at = @At("RETURN"))
14+
private float fixSkyboxFarplaneClipping(float f) {
15+
return Math.max(f, 11 * 16F); // 11 chunks * 16, the minimum cloud render distance for no clipping issues
16+
}
17+
}

src/client/resources/debugify.client.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"basic.mc237493.TelemetryEventWidgetMixin",
3131
"basic.mc237493.TelemetryInfoScreenMixin",
3232
"basic.mc263865.KeyboardHandlerMixin",
33+
"basic.mc298225.GameRendererMixin",
3334
"basic.mc4490.FishingHookRendererMixin",
3435
"basic.mc46503.ClientPacketListenerMixin",
3536
"basic.mc46766.MinecraftMixin",

src/main/resources/assets/debugify/lang/en_us.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@
7676
"debugify.fix_explanation.mc-200418": "Dismounts baby villagers from chickens upon conversion.",
7777
"debugify.fix_explanation.mc-206922": "Items with an age less than 9 ticks are not removed from lightning strikes.",
7878
"debugify.fix_explanation.mc-215530": "Resets frozen time when the player changes to spectator.",
79-
"debugify.fix_explanation.mc-224729": "Always saves ProtoChunks even if the chunk save predicate returns false."
79+
"debugify.fix_explanation.mc-224729": "Always saves ProtoChunks even if the chunk save predicate returns false.",
80+
"debugify.fix_explanation.mc-298225": "Fixes skybox getting cut off (i.e. holes/gaps) at low render distances by increasing far plane distance."
8081
}

0 commit comments

Comments
 (0)