diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-12-04 20:37:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 20:37:48 +0100 |
commit | 3d66622772e66154b7624957a27f9be54c4c7c28 (patch) | |
tree | 7ff32e791a39d302f6d1306089b95cb23ebba838 /src/script/lua_api/l_metadata.cpp | |
parent | ae8d14b009650f0fe019301123793312406556e4 (diff) | |
download | minetest-3d66622772e66154b7624957a27f9be54c4c7c28.tar.gz minetest-3d66622772e66154b7624957a27f9be54c4c7c28.tar.bz2 minetest-3d66622772e66154b7624957a27f9be54c4c7c28.zip |
Send only changed node metadata to clients instead of whole mapblock (#5268)
Includes newer style changes and fixes by est31
Improve the block position de-serialization
Add type NodeMetadataMap
Diffstat (limited to 'src/script/lua_api/l_metadata.cpp')
-rw-r--r-- | src/script/lua_api/l_metadata.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/lua_api/l_metadata.cpp b/src/script/lua_api/l_metadata.cpp index 4f64cc8a6..21002e6a7 100644 --- a/src/script/lua_api/l_metadata.cpp +++ b/src/script/lua_api/l_metadata.cpp @@ -122,7 +122,7 @@ int MetaDataRef::l_set_string(lua_State *L) return 0; meta->setString(name, str); - ref->reportMetadataChange(); + ref->reportMetadataChange(&name); return 0; } @@ -160,7 +160,7 @@ int MetaDataRef::l_set_int(lua_State *L) return 0; meta->setString(name, str); - ref->reportMetadataChange(); + ref->reportMetadataChange(&name); return 0; } @@ -198,7 +198,7 @@ int MetaDataRef::l_set_float(lua_State *L) return 0; meta->setString(name, str); - ref->reportMetadataChange(); + ref->reportMetadataChange(&name); return 0; } |