1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

[default] Use moretrees:palm_trunk to control palm leaves' decay

This commit is contained in:
LeMagnesium 2015-10-12 19:14:35 +02:00
parent 11708b03cd
commit 95afbebdd9

View File

@ -351,7 +351,12 @@ minetest.register_abm({
default.leafdecay_trunk_find_allow_accumulator - 1
-- Assume ignore is a trunk, to make the thing
-- work at the border of the active area
local p1 = minetest.find_node_near(p0, d, {"ignore", "group:tree"})
local p1
if n0.name == "moretrees:palm_leaves" then
p1 = minetest.find_node_near(p0, d, {"ignore", "moretrees:palm_trunk"})
else
p1 = minetest.find_node_near(p0, d, {"ignore", "group:tree"})
end
if p1 then
do_preserve = true
if default.leafdecay_enable_cache then