aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-09 10:02:20 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-09 10:02:20 +0100
commitf7ec8186ffad5e2fa4f2cacf456f08ee07bb1061 (patch)
tree86e63ba5bf47a6f1fb5be169450d8b9116b1c2ee /src/script/lua_api
parentcefacd63bf8598414b73f4de491de3e8d4976b93 (diff)
downloadminetest-f7ec8186ffad5e2fa4f2cacf456f08ee07bb1061.tar.xz
Implement InventoryOptimisationOption as enum
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_item.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}