1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

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>
This commit is contained in:
fluxionary
2022-10-09 05:06:09 -07:00
committed by GitHub
parent b2a3f53b29
commit 440d966b93
5 changed files with 130 additions and 1 deletions

View File

@@ -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)