Skip to content

Commit

Permalink
Fix injection error
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPizzaDev committed Aug 3, 2023
1 parent d0ca7d7 commit 8c6c53a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.adventurecraft.awakening.mixin.client;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.llamalad7.mixinextras.injector.WrapWithCondition;
import com.llamalad7.mixinextras.sugar.Local;
import dev.adventurecraft.awakening.ACMainThread;
import dev.adventurecraft.awakening.ACMod;
Expand Down Expand Up @@ -473,14 +473,14 @@ private boolean disableDoubleToggle() {
return true;
}

@ModifyExpressionValue(
@WrapWithCondition(
method = "run",
remap = false,
at = @At(
value = "FIELD",
target = "Lnet/minecraft/client/options/GameOptions;debugHud:Z"))
private boolean renderFrameTimeGraph(boolean value) {
return value && !((ExGameOptions) this.options).ofFastDebugInfo();
value = "INVOKE",
target = "Lnet/minecraft/client/Minecraft;method_2111(J)V"))
private boolean renderFrameTimeGraph(Minecraft instance, long time) {
return !((ExGameOptions) this.options).ofFastDebugInfo();
}

@Inject(
Expand Down

0 comments on commit 8c6c53a

Please sign in to comment.