mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Create ServerThread earlier in the startup process
This commit is contained in:
parent
b55fc3d773
commit
64bdd4b509
@ -220,6 +220,7 @@ Server::Server(
|
|||||||
m_itemdef(createItemDefManager()),
|
m_itemdef(createItemDefManager()),
|
||||||
m_nodedef(createNodeDefManager()),
|
m_nodedef(createNodeDefManager()),
|
||||||
m_craftdef(createCraftDefManager()),
|
m_craftdef(createCraftDefManager()),
|
||||||
|
m_thread(new ServerThread(this)),
|
||||||
m_uptime(0),
|
m_uptime(0),
|
||||||
m_clients(m_con),
|
m_clients(m_con),
|
||||||
m_admin_chat(iface),
|
m_admin_chat(iface),
|
||||||
@ -321,9 +322,6 @@ void Server::init()
|
|||||||
if (!loadGameConfAndInitWorld(m_path_world, m_gamespec))
|
if (!loadGameConfAndInitWorld(m_path_world, m_gamespec))
|
||||||
throw ServerError("Failed to initialize world");
|
throw ServerError("Failed to initialize world");
|
||||||
|
|
||||||
// Create server thread
|
|
||||||
m_thread = new ServerThread(this);
|
|
||||||
|
|
||||||
// Create emerge manager
|
// Create emerge manager
|
||||||
m_emerge = new EmergeManager(this);
|
m_emerge = new EmergeManager(this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user