1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Default: Make snowblock change 'dirt with grass' below

To be consistent with the snow slab.
This commit is contained in:
paramat 2016-11-08 17:30:58 +00:00
parent 614e9cfe8d
commit ddea6c431e

View File

@ -473,6 +473,13 @@ minetest.register_node("default:snowblock", {
dug = {name = "default_snow_footstep", gain = 0.2},
dig = {name = "default_snow_footstep", gain = 0.2}
}),
on_construct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
end
end,
})
minetest.register_node("default:ice", {