1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

[default/nodes] Cleaner fix for leaves drop

This commit is contained in:
LeMagnesium 2015-12-14 18:22:09 +01:00
parent 48f6c6fa34
commit 5f182101eb
2 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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 = {