1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix hud_change and hud_remove after hud_add (#10997)

This commit is contained in:
savilli 2021-02-26 23:21:20 +03:00 committed by GitHub
parent b5eda416ce
commit 3edb1ddb81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 40 deletions

View file

@ -415,11 +415,6 @@ public:
return m_csm_restriction_flags & flag;
}
inline std::unordered_map<u32, u32> &getHUDTranslationMap()
{
return m_hud_server_to_client;
}
bool joinModChannel(const std::string &channel) override;
bool leaveModChannel(const std::string &channel) override;
bool sendModChannelMessage(const std::string &channel,
@ -556,9 +551,6 @@ private:
// Relation of client id to object id
std::unordered_map<int, u16> m_sounds_to_objects;
// Map server hud ids to client hud ids
std::unordered_map<u32, u32> m_hud_server_to_client;
// Privileges
std::unordered_set<std::string> m_privileges;