diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/script/lua_api/l_itemstackmeta.h | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/script/lua_api/l_itemstackmeta.h')
-rw-r--r-- | src/script/lua_api/l_itemstackmeta.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/script/lua_api/l_itemstackmeta.h b/src/script/lua_api/l_itemstackmeta.h index 1351da9da..c3198be4f 100644 --- a/src/script/lua_api/l_itemstackmeta.h +++ b/src/script/lua_api/l_itemstackmeta.h @@ -36,7 +36,7 @@ private: static ItemStackMetaRef *checkobject(lua_State *L, int narg); - virtual Metadata *getmeta(bool auto_create); + virtual Metadata* getmeta(bool auto_create); virtual void clearMeta(); @@ -47,16 +47,18 @@ private: istack->metadata.setToolCapabilities(caps); } - void clearToolCapabilities() { istack->metadata.clearToolCapabilities(); } + void clearToolCapabilities() + { + istack->metadata.clearToolCapabilities(); + } // Exported functions static int l_set_tool_capabilities(lua_State *L); // garbage collector static int gc_object(lua_State *L); - public: - ItemStackMetaRef(ItemStack *istack) : istack(istack) {} + ItemStackMetaRef(ItemStack *istack): istack(istack) {} ~ItemStackMetaRef() = default; // Creates an ItemStackMetaRef and leaves it on top of stack |