mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Lua on each mapgen thread (#13092)
This commit is contained in:
@@ -75,6 +75,11 @@ GUIEngine *ModApiBase::getGuiEngine(lua_State *L)
|
||||
}
|
||||
#endif
|
||||
|
||||
EmergeThread *ModApiBase::getEmergeThread(lua_State *L)
|
||||
{
|
||||
return getScriptApiBase(L)->getEmergeThread();
|
||||
}
|
||||
|
||||
std::string ModApiBase::getCurrentModPath(lua_State *L)
|
||||
{
|
||||
lua_rawgeti(L, LUA_REGISTRYINDEX, CUSTOM_RIDX_CURRENT_MOD_NAME);
|
||||
|
Reference in New Issue
Block a user