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.h | |
| parent | ae8d14b009650f0fe019301123793312406556e4 (diff) | |
| download | minetest-3d66622772e66154b7624957a27f9be54c4c7c28.tar.xz | |
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.h')
| -rw-r--r-- | src/script/lua_api/l_metadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_metadata.h b/src/script/lua_api/l_metadata.h index cee38ed45..e655eb684 100644 --- a/src/script/lua_api/l_metadata.h +++ b/src/script/lua_api/l_metadata.h @@ -37,7 +37,7 @@ public: protected: static MetaDataRef *checkobject(lua_State *L, int narg); - virtual void reportMetadataChange() {} + virtual void reportMetadataChange(const std::string *name = nullptr) {} virtual Metadata *getmeta(bool auto_create) = 0; virtual void clearMeta() = 0; |
