summaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorJosiahWI <41302989+JosiahWI@users.noreply.github.com>2020-10-13 10:36:01 -0500
committerGitHub <noreply@github.com>2020-10-13 16:36:01 +0100
commit11f3deb9c4512b918de8f5e778bc8b9535bd62c7 (patch)
tree61a02fa2cf202e2fc60aa18617d28f670f4c8898 /src/script/lua_api
parentd6711025461b00d8c244b28d77abd09ccd7cd4b4 (diff)
downloadminetest-11f3deb9c4512b918de8f5e778bc8b9535bd62c7.tar.gz
minetest-11f3deb9c4512b918de8f5e778bc8b9535bd62c7.tar.bz2
minetest-11f3deb9c4512b918de8f5e778bc8b9535bd62c7.zip
Pass ContentFeatures as reference to read_content_features (#10464)
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp
index 2d1124a4d..9e0da4034 100644
--- a/src/script/lua_api/l_item.cpp
+++ b/src/script/lua_api/l_item.cpp
@@ -570,7 +570,8 @@ int ModApiItemMod::l_register_item_raw(lua_State *L)
// Read the node definition (content features) and register it
if (def.type == ITEM_NODE) {
- ContentFeatures f = read_content_features(L, table);
+ ContentFeatures f;
+ read_content_features(L, f, table);
// when a mod reregisters ignore, only texture changes and such should
// be done
if (f.name == "ignore")