Fixed buttons triggering their actions twice on the Liteloader pane

This commit is contained in:
Sollace 2018-05-15 16:24:47 +02:00
parent dabd9ecad0
commit 23b2618f1e

View file

@ -38,13 +38,14 @@ public class PonySettingsPanel extends GuiPonySettings implements ConfigPanel {
public void onPanelShown(ConfigPanelHost host) { public void onPanelShown(ConfigPanelHost host) {
mc = Minecraft.getMinecraft(); mc = Minecraft.getMinecraft();
width = host.getWidth(); width = host.getWidth();
buttonList.clear();
initGui(); initGui();
} }
@Override @Override
public void onPanelResize(ConfigPanelHost host) { public void onPanelResize(ConfigPanelHost host) {
width = host.getWidth(); width = host.getWidth();
this.buttonList.clear(); buttonList.clear();
initGui(); initGui();
} }