mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 09:55:22 +02:00
Async environment for mods to do concurrent tasks (#11131)
This commit is contained in:
@@ -525,3 +525,11 @@ void ModApiCraft::Initialize(lua_State *L, int top)
|
||||
API_FCT(register_craft);
|
||||
API_FCT(clear_craft);
|
||||
}
|
||||
|
||||
void ModApiCraft::InitializeAsync(lua_State *L, int top)
|
||||
{
|
||||
// all read-only functions
|
||||
API_FCT(get_all_craft_recipes);
|
||||
API_FCT(get_craft_recipe);
|
||||
API_FCT(get_craft_result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user