1
0
Fork 0

Update grass block param2 when placing snow nodes

This commit is contained in:
Wuzzy 2019-12-14 01:52:01 +01:00
parent b9cc66d3db
commit aaedf6517a
1 changed files with 3 additions and 3 deletions

View File

@ -1318,7 +1318,7 @@ end
mcl_core.clear_snow_dirt = function(pos, node) mcl_core.clear_snow_dirt = function(pos, node)
local def = minetest.registered_nodes[node.name] local def = minetest.registered_nodes[node.name]
if def._mcl_snowless then if def._mcl_snowless then
minetest.swap_node(pos, {name = def._mcl_snowless}) minetest.swap_node(pos, {name = def._mcl_snowless, param2=node.param2})
end end
end end
@ -1339,7 +1339,7 @@ mcl_core.on_snowable_construct = function(pos)
if minetest.get_item_group(anode.name, "snow_cover") == 1 then if minetest.get_item_group(anode.name, "snow_cover") == 1 then
local def = minetest.registered_nodes[node.name] local def = minetest.registered_nodes[node.name]
if def._mcl_snowed then if def._mcl_snowed then
minetest.swap_node(pos, {name = def._mcl_snowed}) minetest.swap_node(pos, {name = def._mcl_snowed, param2=node.param2})
end end
end end
end end
@ -1360,7 +1360,7 @@ mcl_core.on_snow_construct = function(pos)
local node = minetest.get_node(npos) local node = minetest.get_node(npos)
local def = minetest.registered_nodes[node.name] local def = minetest.registered_nodes[node.name]
if def._mcl_snowed then if def._mcl_snowed then
minetest.swap_node(npos, {name = def._mcl_snowed}) minetest.swap_node(npos, {name = def._mcl_snowed, param2=node.param2})
end end
end end
-- after_destruct -- after_destruct