aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_nodemeta.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-26 15:45:34 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commit8908a9101608d3343023b470743ef63f1c44b0b7 (patch)
tree026ce924286a08222bbb88936e203fce7f116f68 /src/script/lua_api/l_nodemeta.h
parent261a8db9dd0403f8d0a7d71f46d4cb272e217cd1 (diff)
downloadminetest-8908a9101608d3343023b470743ef63f1c44b0b7.tar.gz
minetest-8908a9101608d3343023b470743ef63f1c44b0b7.tar.bz2
minetest-8908a9101608d3343023b470743ef63f1c44b0b7.zip
Get rid of node metadata when it becomes empty
fixes #8943
Diffstat (limited to 'src/script/lua_api/l_nodemeta.h')
-rw-r--r--src/script/lua_api/l_nodemeta.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/lua_api/l_nodemeta.h b/src/script/lua_api/l_nodemeta.h
index fdc1766ed..265ece3d0 100644
--- a/src/script/lua_api/l_nodemeta.h
+++ b/src/script/lua_api/l_nodemeta.h
@@ -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[];