Skip to content

[Bug] Having an always on debug entry disables the in game control overlay #982

Description

@Jab125

Current Behaviour

ditto

Expected Behaviour

ditto

Screenshots

No response

Reproduction Steps

ditto

Logs

Mod Version

3.5.0+mc26.1

Controller

Xbox Controller

Bluetooth

  • Yes

Operating System

macOS

ARM

  • Yes

Additional Information

	public boolean showDebugScreen() {
		DebugScreenEntryList entries = this.minecraft.debugEntries;
		return (entries.isOverlayVisible() || !entries.getCurrentlyEnabled().isEmpty()) && (!this.minecraft.options.hideGui || this.minecraft.screen != null);
	}
    public void extractRenderState(GuiGraphicsExtractor graphics, float tickDelta) {
        boolean debugOpen = this.minecraft.getDebugOverlay().showDebugScreen();
        boolean hideGui = this.minecraft.options.hideGui;
        boolean screenOpen = MinecraftUtil.getScreen() != null;
        GenericControllerSettings.GuideSettings settings = this.controller.settings().generic.guide;
        if (!debugOpen && !hideGui && !screenOpen && settings.showIngameGuide) {
            this.guideInstance.extractRenderState(graphics, settings.ingameGuideBottom, true, settings.ingameGuiScale);
        }

    }

Just to make sure...

  • I have made sure I am using the latest version of Controlify for the latest version of Minecraft.
  • I have made sure there are no other issues describing the same problem on the issue tracker.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions