Skip to content

Commit

Permalink
CSM: Fix crashing minetest.get_item_def()
Browse files Browse the repository at this point in the history
fixes #9884
  • Loading branch information
sfan5 committed May 20, 2020
1 parent c94d378 commit 732c800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/common/c_content.cpp
Expand Up @@ -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");
}
Expand Down

1 comment on commit 732c800

@oilboi
Copy link
Contributor

@oilboi oilboi commented on 732c800 May 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.