1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Get rid of node metadata when it becomes empty

fixes #8943
This commit is contained in:
sfan5 2022-05-26 15:45:34 +02:00
parent 261a8db9dd
commit 8908a91016
3 changed files with 32 additions and 7 deletions

View file

@ -33,10 +33,12 @@ class NodeMetadata;
class NodeMetaRef : public MetaDataRef {
private:
bool m_is_local = false;
// Set for server metadata
v3s16 m_p;
ServerEnvironment *m_env = nullptr;
Metadata *m_meta = nullptr;
bool m_is_local = false;
// Set for client metadata
Metadata *m_local_meta = nullptr;
static const char className[];
static const luaL_Reg methodsServer[];