mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
SAPI: Track last executed mod and include in error messages
This commit is contained in:
@@ -193,6 +193,9 @@ bool ScriptApiItem::getItemCallback(const char *name, const char *callbackname)
|
||||
lua_remove(L, -2);
|
||||
luaL_checktype(L, -1, LUA_TTABLE);
|
||||
}
|
||||
|
||||
setOriginFromTable(-1);
|
||||
|
||||
lua_getfield(L, -1, callbackname);
|
||||
lua_remove(L, -2); // Remove item def
|
||||
// Should be a function or nil
|
||||
|
Reference in New Issue
Block a user