1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-27 15:10:20 +01:00

Fix pinetree leafdecay

This commit is contained in:
Hybrid Dog 2017-06-25 20:40:46 +02:00
parent 13ecf6a8b2
commit 2df09a7ebb

View File

@ -8,7 +8,7 @@ local nodedef = {
tiles = {"snow_needles.png"},
waving = 1,
paramtype = "light",
groups = {snappy=3, leafdecay=5},
groups = {snappy=3},
furnace_burntime = 1,
drop = {
max_items = 1,
@ -43,6 +43,12 @@ end
minetest.register_node("snow:needles", table.copy(nodedef))
default.register_leafdecay{
trunks = {"default:pine_tree"},
leaves = {"snow:needles"},
radius = 2,
}
snow.register_on_configuring(function(name, v)
if name == "christmas_content" then
local drop = minetest.registered_nodes["snow:needles"].drop
@ -301,8 +307,9 @@ nodedef = {
dug = {name="default_snow_footstep", gain=0.75},
place = {name="default_place_node", gain=1.0}
}),
-- The "on_construct" part below, thinking in terms of layers, dirt_with_snow could also
-- double as dirt_with_frost which adds subtlety to the winterscape. ~ LazyJ
-- The "on_construct" part below, thinking in terms of layers,
-- dirt_with_snow could also double as dirt_with_frost which adds subtlety
-- to the winterscape. ~ LazyJ
on_construct = snow_onto_dirt
}