Skip to content

Commit 11dc6df

Browse files
Fix F3 menu detection
Fixes https://wurstforum.net/d/1314
1 parent 8634ddf commit 11dc6df

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/java/net/wurstclient/mixin/IngameHudMixin.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
*/
88
package net.wurstclient.mixin;
99

10-
import org.spongepowered.asm.mixin.Final;
1110
import org.spongepowered.asm.mixin.Mixin;
12-
import org.spongepowered.asm.mixin.Shadow;
1311
import org.spongepowered.asm.mixin.injection.At;
1412
import org.spongepowered.asm.mixin.injection.Inject;
1513
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1614

1715
import net.minecraft.client.gui.DrawContext;
18-
import net.minecraft.client.gui.hud.DebugHud;
1916
import net.minecraft.client.gui.hud.InGameHud;
2017
import net.minecraft.client.render.RenderTickCounter;
2118
import net.minecraft.entity.Entity;
@@ -28,18 +25,14 @@
2825
@Mixin(InGameHud.class)
2926
public class IngameHudMixin
3027
{
31-
@Shadow
32-
@Final
33-
private DebugHud debugHud;
34-
3528
// runs after renderScoreboardSidebar()
3629
// and before playerListHud.setVisible()
3730
@Inject(at = @At("HEAD"),
3831
method = "renderPlayerList(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/render/RenderTickCounter;)V")
3932
private void onRenderPlayerList(DrawContext context,
4033
RenderTickCounter tickCounter, CallbackInfo ci)
4134
{
42-
if(debugHud.shouldShowDebugHud())
35+
if(WurstClient.MC.debugHudEntryList.isF3Enabled())
4336
return;
4437

4538
float tickDelta = tickCounter.getTickProgress(true);

0 commit comments

Comments
 (0)