This behavior can be disabled by setting...
moretrees.decay_leaves_as_items = false
...in moretrees_settings.txt in your world folder, in which case leaves will
simply disappear during decay, as usual.
moretrees.sapling_interval = 500
moretrees.sapling_chance = 20
+
+-- If this variable is set to true, drop leaves out as entities during leaf
+-- decay, rather than just disappearing them.
+
+moretrees.decay_leaves_as_items = true
local process_drops = function(pos, name)
local drops = minetest.get_node_drops(name)
for _,dropitem in ipairs(drops) do
- if dropitem ~= name then
+ if dropitem ~= name
+ or (string.find(name, "leaves") and moretrees.decay_leaves_as_items) then
local newpos = {
x=pos.x + math.random() - 0.5,
y=pos.y + math.random() - 0.5,