Fix array configs not saving in config GUI

This commit is contained in:
tterrag1098
2017-05-25 17:10:22 -04:00
parent f1f580ded1
commit 5c9ea2db15

View File

@@ -19,16 +19,20 @@ public class BlurConfigGui extends GuiConfig {
@Override @Override
public void initGui() { public void initGui() {
super.initGui(); if (this.entryList == null || this.needsRefresh)
this.entryList = new GuiConfigEntries(this, mc) { {
@SuppressWarnings({ "unused", "null" }) this.entryList = new GuiConfigEntries(this, mc) {
@Override @SuppressWarnings({ "unused", "null" })
protected void drawContainerBackground(@Nonnull Tessellator tessellator) { @Override
if (mc.world == null) { protected void drawContainerBackground(@Nonnull Tessellator tessellator) {
super.drawContainerBackground(tessellator); if (mc.world == null) {
super.drawContainerBackground(tessellator);
}
} }
} };
}; this.needsRefresh = false;
}
super.initGui();
} }
@Override @Override