LuaItemStack: Add __tostring metamethod (#8785)
authorPaul Ouellette <oue.paul18@gmail.com>
Tue, 9 Jun 2020 17:37:25 +0000 (13:37 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2020 17:37:25 +0000 (19:37 +0200)
commitb16f841756ef86e83710ad2fddf2cd5bafdf4bcc
tree777e5dee13e1e2d20a7f8e4a5b8df19a7fad6b85
parent09e285f38cd96b4278b921ab82c5266082bb1a0d
LuaItemStack: Add __tostring metamethod (#8785)

* LuaItemStack: Add __tostring metamethod

* Clean up LuaItemStack::checkobject
builtin/common/misc_helpers.lua
src/inventory.cpp
src/inventory.h
src/script/lua_api/l_item.cpp
src/script/lua_api/l_item.h