1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Pass ContentFeatures as reference to read_content_features (#10464)

This commit is contained in:
JosiahWI 2020-10-13 10:36:01 -05:00 committed by GitHub
parent d671102546
commit 11f3deb9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -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")