mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Falling sand and gravel
This commit is contained in:
parent
cc03718d3c
commit
1220b642eb
3 changed files with 233 additions and 55 deletions
|
@ -47,7 +47,9 @@ bool script_load(lua_State *L, const char *path)
|
|||
int ret = luaL_loadfile(L, path) || lua_pcall(L, 0, 0, 0);
|
||||
if(ret){
|
||||
errorstream<<"Failed to load and run script from "<<path<<":"<<std::endl;
|
||||
errorstream<<"[LUA] "<<std::endl;
|
||||
errorstream<<"[LUA] "<<lua_tostring(L, -1)<<std::endl;
|
||||
errorstream<<"[LUA] "<<std::endl;
|
||||
lua_pop(L, 1); // Pop error message from stack
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue