forked from mtcontrib/moretrees
Make all leaves drop as items during decay by default.
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.
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
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,
|
||||
|
Reference in New Issue
Block a user