CSM: Fix crashing minetest.get_item_def()

fixes #9884
master
sfan5 2020-05-20 20:13:16 +02:00
parent c94d37827d
commit 732c8008f4
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ void push_item_definition_full(lua_State *L, const ItemDefinition &i)
lua_setfield(L, -2, "usable");
lua_pushboolean(L, i.liquids_pointable);
lua_setfield(L, -2, "liquids_pointable");
if (i.type == ITEM_TOOL) {
if (i.tool_capabilities) {
push_tool_capabilities(L, *i.tool_capabilities);
lua_setfield(L, -2, "tool_capabilities");
}