mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 11:45:09 +01:00
Fix array configs not saving in config GUI
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user