From f7ec8186ffad5e2fa4f2cacf456f08ee07bb1061 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 9 Mar 2021 10:02:20 +0100 Subject: Implement InventoryOptimisationOption as enum --- src/script/lua_api/l_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_item.cpp') diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp index 9e0da4034..7faf12340 100644 --- a/src/script/lua_api/l_item.cpp +++ b/src/script/lua_api/l_item.cpp @@ -41,7 +41,7 @@ int LuaItemStack::gc_object(lua_State *L) int LuaItemStack::mt_tostring(lua_State *L) { LuaItemStack *o = checkobject(L, 1); - std::string itemstring = o->m_stack.getItemString(false); + std::string itemstring = o->m_stack.getItemString(INV_OO_NO_META); lua_pushfstring(L, "ItemStack(\"%s\")", itemstring.c_str()); return 1; } -- cgit v1.2.3