Skip to content

Commit

Permalink
Fix the player information version_string return value (#8616)
Browse files Browse the repository at this point in the history
* Give more player information

* Correct lua_api.txt

* Correct keys in lua_api.txt

* Improve Code

* Only Bugfix+ser_vers

* Correct doc

* Fix double
  • Loading branch information
Lejo1 authored and SmallJoker committed Dec 20, 2019
1 parent ec3224d commit 37f771a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/clientiface.h
Expand Up @@ -338,6 +338,7 @@ class RemoteClient
u8 getMajor() const { return m_version_major; }
u8 getMinor() const { return m_version_minor; }
u8 getPatch() const { return m_version_patch; }
const std::string &getFull() const { return m_full_version; }
private:
// Version is stored in here after INIT before INIT2
u8 m_pending_serialization_version = SER_FMT_VER_INVALID;
Expand Down
2 changes: 1 addition & 1 deletion src/server.cpp
Expand Up @@ -1283,7 +1283,7 @@ bool Server::getClientInfo(
*major = client->getMajor();
*minor = client->getMinor();
*patch = client->getPatch();
*vers_string = client->getPatch();
*vers_string = client->getFull();

m_clients.unlock();

Expand Down

0 comments on commit 37f771a

Please sign in to comment.