mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: nameless worlds
This commit is contained in:
parent
b9707e11ca
commit
f772d527e2
3 changed files with 14 additions and 1 deletions
|
|
@ -108,6 +108,10 @@ void LevelController::update(float delta, bool pause) {
|
|||
|
||||
void LevelController::saveWorld() {
|
||||
auto world = level->getWorld();
|
||||
if (world->isNameless()) {
|
||||
logger.info() << "nameless world will not be saved";
|
||||
return;
|
||||
}
|
||||
logger.info() << "writing world '" << world->getName() << "'";
|
||||
world->wfile->createDirectories();
|
||||
scripting::on_world_save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue