mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 11:00:25 +01:00
[default] Use moretrees:palm_trunk to control palm leaves' decay
This commit is contained in:
parent
11708b03cd
commit
95afbebdd9
@ -351,7 +351,12 @@ minetest.register_abm({
|
|||||||
default.leafdecay_trunk_find_allow_accumulator - 1
|
default.leafdecay_trunk_find_allow_accumulator - 1
|
||||||
-- Assume ignore is a trunk, to make the thing
|
-- Assume ignore is a trunk, to make the thing
|
||||||
-- work at the border of the active area
|
-- 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
|
if p1 then
|
||||||
do_preserve = true
|
do_preserve = true
|
||||||
if default.leafdecay_enable_cache then
|
if default.leafdecay_enable_cache then
|
||||||
|
Loading…
Reference in New Issue
Block a user