Corrige la disparition des aiguilles de pin quand l'arbre est détruit

This commit is contained in:
sys4-fr 2018-11-11 20:01:13 +01:00
parent df38728f4b
commit d06bec7c52
2 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
nodenames = {"group:melts"}, nodenames = {"group:melts"},
neighbors = {"group:igniter", "default:torch", "default:furnace_active", "group:hot"}, neighbors = {"group:igniter", "default:torch", "default:torch_wall", "default:furnace_active", "group:hot"},
interval = 10, interval = 10,
chance = 2, chance = 2,
action = function(pos, node) action = function(pos, node)

View File

@ -47,7 +47,7 @@ If christmas_content is enabled, then this next part will override the pine need
The Xmas tree needles are registred and defined a farther down in this nodes.lua file. The Xmas tree needles are registred and defined a farther down in this nodes.lua file.
~ LazyJ ~ LazyJ
]] ]]--
if snow.christmas_content then if snow.christmas_content then
table.insert(nodedef.drop.items, 1, { table.insert(nodedef.drop.items, 1, {
-- player will get xmas tree with 1/120 chance -- player will get xmas tree with 1/120 chance
@ -60,7 +60,7 @@ minetest.register_node("snow:needles", table.copy(nodedef))
default.register_leafdecay{ default.register_leafdecay{
trunks = {"default:pine_tree"}, trunks = {"default:pine_tree"},
leaves = {"snow:needles"}, leaves = {"default:pine_needles", "snow:needles"},
radius = 2, radius = 2,
} }
@ -279,7 +279,7 @@ nodedef.groups.flammable = 1
minetest.register_node("snow:apple", nodedef) minetest.register_node("snow:apple", nodedef)
snow.known_plants[minetest.get_content_id("default:apple")] = minetest.get_content_id("snow:apple") snow.known_plants[minetest.get_content_id("default:apple")] = minetest.get_content_id("snow:apple")
if not snow.disable_mapgen then --[[if not snow.disable_mapgen then
-- decay from default/nodes.lua:2537 -- decay from default/nodes.lua:2537
default.register_leafdecay{ default.register_leafdecay{
trunks = {"default:tree"}, trunks = {"default:tree"},
@ -287,7 +287,7 @@ if not snow.disable_mapgen then
radius = minetest.get_mapgen_setting("mg_name") == "v6" and 2 or 3, radius = minetest.get_mapgen_setting("mg_name") == "v6" and 2 or 3,
} }
end end
]]--
-- TODO -- TODO
snow.known_plants[minetest.get_content_id("default:jungleleaves")] = minetest.get_content_id("default:jungleleaves") snow.known_plants[minetest.get_content_id("default:jungleleaves")] = minetest.get_content_id("default:jungleleaves")