diff options
author | Cora de la Mouche <73539712+corarona@users.noreply.github.com> | 2023-06-20 02:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 02:43:39 +0200 |
commit | 2c050a42d7d4c33552834a219fb8247b7e70a69e (patch) | |
tree | b828573611448daae5a3085d2651100f6564ff19 /src/script/lua_api | |
parent | f8fd5c11b645c2f35e3b46fa72844ceb25bbde2e (diff) | |
parent | 64e7dda46e9c8020a43a5e0f8032d4068628336b (diff) | |
download | dragonfireclient-2c050a42d7d4c33552834a219fb8247b7e70a69e.tar.xz |
Merge pull request #61 from dragonfireclient/serverinfo_seed
Add mapseed to get_server_info table
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_client.cpp | 2 |
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; } |