mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Enforced mod global naming convention and better error reporting
This commit is contained in:
parent
581f950e10
commit
d96cd236f3
7 changed files with 258 additions and 140 deletions
|
@ -978,7 +978,7 @@ Server::Server(
|
|||
// Load and run builtin.lua
|
||||
infostream<<"Server: Loading builtin Lua stuff from \""<<builtinpath
|
||||
<<"\""<<std::endl;
|
||||
bool success = script_load(m_lua, builtinpath.c_str());
|
||||
bool success = scriptapi_loadmod(m_lua, builtinpath, "__builtin");
|
||||
if(!success){
|
||||
errorstream<<"Server: Failed to load and run "
|
||||
<<builtinpath<<std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue