diff --git a/src/main/java/net/wurstclient/mixin/LivingEntityMixin.java b/src/main/java/net/wurstclient/mixin/LivingEntityMixin.java index 608fbcd52c..630f64cf26 100644 --- a/src/main/java/net/wurstclient/mixin/LivingEntityMixin.java +++ b/src/main/java/net/wurstclient/mixin/LivingEntityMixin.java @@ -25,10 +25,11 @@ public class LivingEntityMixin * Stops the other darkness effect in caves when AntiBlind is enabled. */ @Inject(at = @At("HEAD"), - method = "method_66279(Lnet/minecraft/registry/entry/RegistryEntry;F)F", + method = "getEffectFadeFactor(Lnet/minecraft/registry/entry/RegistryEntry;F)F", cancellable = true) - private void onGetDarknessFactor(RegistryEntry registryEntry, - float delta, CallbackInfoReturnable cir) + private void onGetEffectFadeFactor( + RegistryEntry registryEntry, float delta, + CallbackInfoReturnable cir) { if(registryEntry != StatusEffects.DARKNESS) return; diff --git a/src/main/java/net/wurstclient/mixin/RenderTickCounterDynamicMixin.java b/src/main/java/net/wurstclient/mixin/RenderTickCounterDynamicMixin.java index b987375833..bbeff423dd 100644 --- a/src/main/java/net/wurstclient/mixin/RenderTickCounterDynamicMixin.java +++ b/src/main/java/net/wurstclient/mixin/RenderTickCounterDynamicMixin.java @@ -24,7 +24,7 @@ public abstract class RenderTickCounterDynamicMixin public float lastFrameDuration; @Inject(at = @At(value = "FIELD", - target = "Lnet/minecraft/client/render/RenderTickCounter$Dynamic;prevTimeMillis:J", + target = "Lnet/minecraft/client/render/RenderTickCounter$Dynamic;lastTimeMillis:J", opcode = Opcodes.PUTFIELD, ordinal = 0), method = "beginRenderTick(J)I") public void onBeginRenderTick(long timeMillis,