Skip to content
Permalink
Browse files

CSM: Fix crashing minetest.get_item_def()

fixes #9884
  • Loading branch information
sfan5 committed May 20, 2020
1 parent c94d378 commit 732c8008f495bc344957bd0ccbd4010adb939207
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/script/common/c_content.cpp
@@ -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");
}

1 comment on commit 732c800

@oilboi

This comment has been minimized.

Copy link
Contributor

@oilboi oilboi commented on 732c800 May 20, 2020

👍

Please sign in to comment.
You can’t perform that action at this time.