fixed esc in BuildingAdminMenu

This commit is contained in:
Yvonne Schmidt 2024-12-02 01:11:38 +01:00
parent 411f7ea25b
commit fcb55e52fc

View File

@ -163,14 +163,6 @@ public class BuildingAdminMenu extends Dialog {
app.getGuiNode().attachChild(background); app.getGuiNode().attachChild(background);
} }
/**
* Handles the "Zurück" action.
*/
private void handleBack() {
app.getGameLogic().playSound(Sound.BUTTON);
close();
}
@Override @Override
public void close() { public void close() {
app.getGuiNode().detachChild(mainContainer); app.getGuiNode().detachChild(mainContainer);
@ -180,7 +172,7 @@ public class BuildingAdminMenu extends Dialog {
@Override @Override
public void escape() { public void escape() {
handleBack(); new SettingsMenu(app).open();
} }
@Override @Override