From 5f182101eb51dc4fd0e650138948da8058d7db3e Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 14 Dec 2015 18:22:09 +0100 Subject: [PATCH] [default/nodes] Cleaner fix for leaves drop --- minetestforfun_game/mods/default/functions.lua | 2 -- minetestforfun_game/mods/default/nodes.lua | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/minetestforfun_game/mods/default/functions.lua b/minetestforfun_game/mods/default/functions.lua index f1e2cc38..491bbbee 100755 --- a/minetestforfun_game/mods/default/functions.lua +++ b/minetestforfun_game/mods/default/functions.lua @@ -382,9 +382,7 @@ minetest.register_abm({ end end -- Remove node - local n = minetest.get_node(p0).name minetest.remove_node(p0) - minetest.add_item(p0, {name = n}) nodeupdate(p0) end end diff --git a/minetestforfun_game/mods/default/nodes.lua b/minetestforfun_game/mods/default/nodes.lua index eab78660..900d1af9 100755 --- a/minetestforfun_game/mods/default/nodes.lua +++ b/minetestforfun_game/mods/default/nodes.lua @@ -578,7 +578,7 @@ minetest.register_node("default:leaves", { paramtype = "light", walkable = false, is_ground_content = false, - groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, + groups = {snappy = 3, leafdecay = 3, leafdecay_drop = 1, flammable = 2, leaves = 1}, drop = { max_items = 1, items = { @@ -660,7 +660,7 @@ minetest.register_node("default:jungleleaves", { paramtype = "light", is_ground_content = false, walkable = false, - groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, + groups = {snappy = 3, leafdecay = 3, leafdecay_drop = 1, flammable = 2, leaves = 1}, drop = { max_items = 1, items = { @@ -728,7 +728,7 @@ minetest.register_node("default:pine_needles",{ waving = 1, paramtype = "light", is_ground_content = false, - groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, + groups = {snappy = 3, leafdecay = 3, leafdecay_drop = 1, flammable = 2, leaves = 1}, drop = { max_items = 1, items = { @@ -790,7 +790,7 @@ minetest.register_node("default:acacia_leaves", { waving = 1, paramtype = "light", is_ground_content = false, - groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, + groups = {snappy = 3, leafdecay = 3, leafdecay_drop = 1, flammable = 2, leaves = 1}, drop = { max_items = 1, items = { @@ -857,7 +857,7 @@ minetest.register_node("default:cherry_blossom_leaves", { paramtype = "light", waving = 1, is_ground_content = false, - groups = {snappy=3, leafdecay=3, flammable=2, leaves=1}, + groups = {snappy=3, leafdecay=3, leafdecay_drop = 1, flammable=2, leaves=1}, drop = { max_items = 1, items = {