mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add minetest.register_lbm() to run code on block load only
This commit is contained in:
parent
88fbe7ca1e
commit
d494733839
12 changed files with 493 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue