mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
e0440b263e
commit
adc287baf3
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ void EngineController::deleteWorld(const std::string& name) {
|
|||
auto deletion = [this, folder]() {
|
||||
logger.info() << "deleting " << folder;
|
||||
fs::remove_all(folder);
|
||||
engine.getGUI()->getMenu()->back();
|
||||
if (!engine.isHeadless()) {
|
||||
engine.getGUI()->getMenu()->back();
|
||||
}
|
||||
};
|
||||
|
||||
if (engine.isHeadless()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue