mirror of
https://github.com/minetest/minetest.git
synced 2025-07-06 09:50:23 +02:00
Pass ContentFeatures as reference to read_content_features (#10464)
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user