aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorcora <coradelamouche@gmx.ch>2023-06-15 19:40:02 +0200
committercora <coradelamouche@gmx.ch>2023-06-15 19:40:02 +0200
commit7a59bcda75bcf29180072b026f438b56ce66dfbb (patch)
tree95072771617a32d9be52af3a6508034c98dc894a /src/script/lua_api
parentf8fd5c11b645c2f35e3b46fa72844ceb25bbde2e (diff)
downloaddragonfireclient-7a59bcda75bcf29180072b026f438b56ce66dfbb.tar.xz
Add mapseed to get_server_info table
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 265c7d3fc..561559837 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -332,6 +332,8 @@ int ModApiClient::l_get_server_info(lua_State *L)
lua_setfield(L, -2, "port");
lua_pushinteger(L, client->getProtoVersion());
lua_setfield(L, -2, "protocol_version");
+ lua_pushinteger(L, client->getMapSeed());
+ lua_setfield(L, -2, "seed");
return 1;
}