From 8de21fd09d288dc39c14a50967d852529ef21272 Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Fri, 29 Nov 2024 12:05:39 -0500 Subject: [PATCH] apply freecam "fix" from 1.21.3. --- .../dy/masa/tweakeroo/mixin/MixinGameRenderer.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinGameRenderer.java b/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinGameRenderer.java index 1a12116e4..9a4ce9a05 100644 --- a/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinGameRenderer.java +++ b/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinGameRenderer.java @@ -3,9 +3,9 @@ import java.util.function.Predicate; import com.llamalad7.mixinextras.injector.ModifyExpressionValue; -import net.minecraft.block.enums.CameraSubmersionType; import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.Camera; +import net.minecraft.client.render.CameraSubmersionType; import net.minecraft.client.render.GameRenderer; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; @@ -19,14 +19,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; -import net.minecraft.client.MinecraftClient; -import net.minecraft.client.render.Camera; -import net.minecraft.client.render.GameRenderer; -import net.minecraft.client.util.math.MatrixStack; -import net.minecraft.entity.Entity; -import net.minecraft.entity.LivingEntity; -import net.minecraft.entity.decoration.AbstractDecorationEntity; - import fi.dy.masa.tweakeroo.config.Callbacks; import fi.dy.masa.tweakeroo.config.Configs; import fi.dy.masa.tweakeroo.config.FeatureToggle; @@ -79,7 +71,7 @@ private boolean freezeFovOnFreeCamera(boolean value) @ModifyExpressionValue( method = "getFov", at = @At(value = "INVOKE", - target = "Lnet/minecraft/client/render/Camera;getSubmersionType()Lnet/minecraft/block/enums/CameraSubmersionType;")) + target = "Lnet/minecraft/client/render/Camera;getSubmersionType()Lnet/minecraft/client/render/CameraSubmersionType;")) private CameraSubmersionType ignoreSubmersionTypeOnFreeCamera(CameraSubmersionType original) { if (FeatureToggle.TWEAK_FREE_CAMERA.getBooleanValue())