mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +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
|
||||
-- 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
|
||||
|
Loading…
Reference in New Issue
Block a user