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
public void initGui() {
super.initGui();
this.entryList = new GuiConfigEntries(this, mc) {
@SuppressWarnings({ "unused", "null" })
@Override
protected void drawContainerBackground(@Nonnull Tessellator tessellator) {
if (mc.world == null) {
super.drawContainerBackground(tessellator);
if (this.entryList == null || this.needsRefresh)
{
this.entryList = new GuiConfigEntries(this, mc) {
@SuppressWarnings({ "unused", "null" })
@Override
protected void drawContainerBackground(@Nonnull Tessellator tessellator) {
if (mc.world == null) {
super.drawContainerBackground(tessellator);
}
}
}
};
};
this.needsRefresh = false;
}
super.initGui();
}
@Override