mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Properly handle mod-errors in on_shutdown
This commit is contained in:
parent
3e5bce2251
commit
f27cf47779
3 changed files with 23 additions and 4 deletions
|
@ -1300,7 +1300,8 @@ bool Game::createSingleplayerServer(const std::string &map_dir,
|
|||
return false;
|
||||
}
|
||||
|
||||
server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr, false);
|
||||
server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr,
|
||||
false, nullptr, error_message);
|
||||
server->start();
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue