mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspecs: Introduce formspec_version to mods
This commit is contained in:
parent
b0baa698a4
commit
9acd36bf99
11 changed files with 54 additions and 10 deletions
|
@ -233,6 +233,10 @@ int ModApiServer::l_get_player_information(lua_State *L)
|
|||
lua_pushnumber(L, prot_vers);
|
||||
lua_settable(L, table);
|
||||
|
||||
lua_pushstring(L, "formspec_version");
|
||||
lua_pushnumber(L, player->formspec_version);
|
||||
lua_settable(L, table);
|
||||
|
||||
#ifndef NDEBUG
|
||||
lua_pushstring(L,"serialization_version");
|
||||
lua_pushnumber(L, ser_vers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue