mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Async-related script cleanups
This commit is contained in:
parent
0f8a6d78a7
commit
6a1424f2b1
15 changed files with 135 additions and 156 deletions
|
@ -331,13 +331,9 @@ void ScriptApiBase::setOriginDirect(const char *origin)
|
|||
|
||||
void ScriptApiBase::setOriginFromTableRaw(int index, const char *fxn)
|
||||
{
|
||||
#ifdef SCRIPTAPI_DEBUG
|
||||
lua_State *L = getStack();
|
||||
|
||||
m_last_run_mod = lua_istable(L, index) ?
|
||||
getstringfield_default(L, index, "mod_origin", "") : "";
|
||||
//printf(">>>> running %s for mod: %s\n", fxn, m_last_run_mod.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue