@Override public void onGuiClosed() { super.onGuiClosed(); if (this.prevSize != -1) { this.mc.gameSettings.guiScale = this.prevSize; } }
@Override public void updateScreen() { super.updateScreen(); if (this.prevSize == -1) { this.prevSize = this.mc.gameSettings.guiScale; this.mc.gameSettings.guiScale = 3; ScaledResolution resolution = new ScaledResolution(this.mc); this.setWorldAndResolution( this.mc, resolution.getScaledWidth(), resolution.getScaledHeight()); } }
@Override public void initGui() { super.initGui(); }