26.1-snap-7

This commit is contained in:
gnembon committed 2026-02-12 15:03:34 +01:00
1 parent 35a1a1a600
commit e348f8fa6d
7 files changed
+29 -33

No files matched your search

@@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(LevelRenderer.class)
public class LevelRenderer_creativeNoClipMixin
{
@Redirect(method = "renderLevel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSpectator()Z"))
@Redirect(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/player/LocalPlayer;isSpectator()Z"))
private boolean canSeeWorld(LocalPlayer clientPlayerEntity)
{
return clientPlayerEntity.isSpectator() || (CarpetSettings.creativeNoClip && clientPlayerEntity.isCreative());