mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01: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 Button(width / 2 - 100, height - 25))
|
||||
.onClick(sender -> finish())
|
||||
.onClick(sender -> onClose())
|
||||
.getStyle()
|
||||
.setText("gui.done");
|
||||
|
||||
|
@ -153,8 +153,7 @@ public class GuiPonySettings extends GameGui {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onClose() {
|
||||
super.onClose();
|
||||
public void removed() {
|
||||
config.save();
|
||||
|
||||
PonySkullRenderer.resolve();
|
||||
|
|
Loading…
Reference in a new issue