diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-25 15:30:31 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-25 15:30:31 +1100 |
commit | 48b8d43ff891216735720b9844dba31583a4245b (patch) | |
tree | d383eddd30adbb6028b5f9718723a3be5b62c252 /source/game/StarUniverseClient.cpp | |
parent | ced12b62e0f07a87acde665589fe333075b35178 (diff) |
Add player Lua functions from SE
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r-- | source/game/StarUniverseClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarUniverseClient.cpp b/source/game/StarUniverseClient.cpp index 3423f2d..c492d89 100644 --- a/source/game/StarUniverseClient.cpp +++ b/source/game/StarUniverseClient.cpp @@ -574,7 +574,7 @@ bool UniverseClient::switchPlayer(String const& name) { if (auto uuid = m_playerStorage->playerUuidByName(name, mainPlayer()->uuid())) return switchPlayer(*uuid); else - return false; + return switchPlayer(Uuid(name)); } UniverseClient::ReloadPlayerCallback& UniverseClient::playerReloadPreCallback() { |