Removed redundant fullScreenButton.draw calls, already drawn in GuiScriptTextArea

This commit is contained in:
bigguy345 committed 2026-01-26 04:00:24 +02:00
1 parent bd1743d069
commit 3f204d412d
2 files changed
+1 -24

No files matched your search

@@ -380,20 +380,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
protected ScriptContext getScriptContext() {
return handler.getContext();
}
// ==================== RENDERING ====================
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
super.drawScreen(mouseX, mouseY, partialTicks);
// Draw fullscreen button on top of everything when on script editor tab
// Skip for useSettingsToggle GUIs (like GuiScript) - they handle this themselves
if (this.activeTab > 0 && !useSettingsToggle && !handler.isSingleContainer()) {
fullscreenButton.draw(mouseX, mouseY);
}
}
// ==================== MOUSE HANDLING ====================
@Override