mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add minetest.register_lbm() to run code on block load only
This commit is contained in:
@@ -344,10 +344,11 @@ Server::Server(
|
||||
servermap->addEventReceiver(this);
|
||||
|
||||
// If file exists, load environment metadata
|
||||
if(fs::PathExists(m_path_world + DIR_DELIM "env_meta.txt"))
|
||||
{
|
||||
infostream<<"Server: Loading environment metadata"<<std::endl;
|
||||
if (fs::PathExists(m_path_world + DIR_DELIM "env_meta.txt")) {
|
||||
infostream << "Server: Loading environment metadata" << std::endl;
|
||||
m_env->loadMeta();
|
||||
} else {
|
||||
m_env->loadDefaultMeta();
|
||||
}
|
||||
|
||||
// Add some test ActiveBlockModifiers to environment
|
||||
|
Reference in New Issue
Block a user