Skip to content

Commit

Permalink
Default: Make snowblock change 'dirt with grass' below
Browse files Browse the repository at this point in the history
To be consistent with the snow slab.
  • Loading branch information
paramat committed Nov 10, 2016
1 parent 614e9cf commit ddea6c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -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", {
Expand Down

0 comments on commit ddea6c4

Please sign in to comment.