diff options
author | fluxionary <25628292+fluxionary@users.noreply.github.com> | 2022-10-09 05:06:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 08:06:09 -0400 |
commit | 440d966b939059dfa51604eb68d61eecb12baeb4 (patch) | |
tree | 702416d3686b168cee90e1029a766161267277c6 /src/script/lua_api/l_item.h | |
parent | b2a3f53b297d4aec37f8272992f8e9b465d43a43 (diff) | |
download | minetest-440d966b939059dfa51604eb68d61eecb12baeb4.tar.xz |
add an 'equals' method to ItemStack and compatibility w/ lua '==' (#12771)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/script/lua_api/l_item.h')
-rw-r--r-- | src/script/lua_api/l_item.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_item.h b/src/script/lua_api/l_item.h index 8f4b25cf4..a4cc706d8 100644 --- a/src/script/lua_api/l_item.h +++ b/src/script/lua_api/l_item.h @@ -140,6 +140,9 @@ private: // peek_item(self, peekcount=1) -> itemstack static int l_peek_item(lua_State *L); + // equals(self, other) -> bool + static int l_equals(lua_State *L); + public: DISABLE_CLASS_COPY(LuaItemStack) |