1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-11 18:40:25 +01:00

[moretrees] Drop default's j-tree from moreores'

- This way moretrees can generate correctly using its own node, but it drops the normal jungle tree when it's dug
This commit is contained in:
LeMagnesium 2017-07-20 18:56:35 +02:00
parent 8cf808ea83
commit 7839c16b42

View File

@ -382,6 +382,8 @@ minetest.register_abm({
-- we need our own copy of that node, which moretrees will match against.
local jungle_tree = moretrees.clone_node("default:jungletree")
jungle_tree.drop = jungle_tree.drop or { items = {} }
table.insert(jungle_tree.drop.items, { items = {"default:jungletree"}})
minetest.register_node("moretrees:jungletree_trunk", jungle_tree)
-- For compatibility with old nodes, recently-changed nodes, and default nodes