Skip to content

Commit

Permalink
Fix broken mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Jan 15, 2025
1 parent d82cd5f commit d8cdb86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/wurstclient/mixin/LivingEntityMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<StatusEffect> registryEntry,
float delta, CallbackInfoReturnable<Float> cir)
private void onGetEffectFadeFactor(
RegistryEntry<StatusEffect> registryEntry, float delta,
CallbackInfoReturnable<Float> cir)
{
if(registryEntry != StatusEffects.DARKNESS)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d8cdb86

Please sign in to comment.