mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
Add different dirt types for snow condition
This commit is contained in:
parent
4f1a278481
commit
bdc12c2013
1 changed files with 5 additions and 2 deletions
|
@ -610,8 +610,11 @@ minetest.register_node("default:snow", {
|
|||
on_construct = function(pos)
|
||||
pos.y = pos.y-1
|
||||
local node = minetest.get_node(pos)
|
||||
if node.name == "default:dirt_with_grass"
|
||||
or node.name == "default:dirt" then
|
||||
if node.name == "default:dirt"
|
||||
or node.name == "default:dirt_with_grass"
|
||||
or node.name == "default:dirt_with_grass_footsteps"
|
||||
or node.name == "default:dirt_with_rainforest_litter"
|
||||
or node.name == "default:dirt_with_coniferous_litter" then
|
||||
node.name = "default:dirt_with_snow"
|
||||
minetest.set_node(pos, node)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue