diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-07-30 09:42:47 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-07-30 09:42:47 -0400 |
commit | ba170ee66ef0d969f2579fc9aaf374b846041e2e (patch) | |
tree | e68ffdd6f05e1e3498863a5f7445ffa0ee893ccf /node_defs.lua | |
parent | 8276d82bac5e596752befb1ab7e481a36c9c745b (diff) |
use clone-node method to redefine apple
(only way to add a new group item, for compat with rubenwardy's food mod)
Diffstat (limited to 'node_defs.lua')
-rw-r--r-- | node_defs.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_defs.lua b/node_defs.lua index 724133f..c49cf7c 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -374,9 +374,9 @@ minetest.register_node("moretrees:fir_leaves_bright", { }) if moretrees.enable_redefine_apple then - minetest.override_item("default:apple", - {groups = { fleshy=3, dig_immediate=3, flammable=2, leafdecay=3, leafdecay_drop=1, attached_node = 1} - }) + local appledef = moretrees.clone_node("default:apple") + appledef.groups.attached_node = 1 + minetest.register_node(":default:apple", appledef) end table.insert(moretrees.avoidnodes, "default:jungletree") |