From 3d66622772e66154b7624957a27f9be54c4c7c28 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 4 Dec 2018 20:37:48 +0100 Subject: 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 --- src/script/lua_api/l_metadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_metadata.h') 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; -- cgit v1.2.3