mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-15 19:25: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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user