mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-03-30 16:27:43 +02:00
Fix close button not actually saving the settings
This commit is contained in:
parent
37433ce75d
commit
537b36a410
1 changed files with 2 additions and 3 deletions
|
@ -75,7 +75,7 @@ public class GuiPonySettings extends GameGui {
|
||||||
|
|
||||||
addButton(new Label(width / 2, 5).setCentered()).getStyle().setText(getTitle().getString());
|
addButton(new Label(width / 2, 5).setCentered()).getStyle().setText(getTitle().getString());
|
||||||
addButton(new Button(width / 2 - 100, height - 25))
|
addButton(new Button(width / 2 - 100, height - 25))
|
||||||
.onClick(sender -> finish())
|
.onClick(sender -> onClose())
|
||||||
.getStyle()
|
.getStyle()
|
||||||
.setText("gui.done");
|
.setText("gui.done");
|
||||||
|
|
||||||
|
@ -153,8 +153,7 @@ public class GuiPonySettings extends GameGui {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClose() {
|
public void removed() {
|
||||||
super.onClose();
|
|
||||||
config.save();
|
config.save();
|
||||||
|
|
||||||
PonySkullRenderer.resolve();
|
PonySkullRenderer.resolve();
|
||||||
|
|
Loading…
Add table
Reference in a new issue