Skip to content

Commit 37f771a

Browse files
Lejo1SmallJoker
authored andcommittedDec 20, 2019
Fix the player information version_string return value (#8616)
* Give more player information * Correct lua_api.txt * Correct keys in lua_api.txt * Improve Code * Only Bugfix+ser_vers * Correct doc * Fix double
1 parent ec3224d commit 37f771a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/clientiface.h

+1
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ class RemoteClient
338338
u8 getMajor() const { return m_version_major; }
339339
u8 getMinor() const { return m_version_minor; }
340340
u8 getPatch() const { return m_version_patch; }
341+
const std::string &getFull() const { return m_full_version; }
341342
private:
342343
// Version is stored in here after INIT before INIT2
343344
u8 m_pending_serialization_version = SER_FMT_VER_INVALID;

‎src/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ bool Server::getClientInfo(
12831283
*major = client->getMajor();
12841284
*minor = client->getMinor();
12851285
*patch = client->getPatch();
1286-
*vers_string = client->getPatch();
1286+
*vers_string = client->getFull();
12871287

12881288
m_clients.unlock();
12891289

0 commit comments

Comments
 (0)
Please sign in to comment.