Skip to content

Commit

Permalink
Make dry grass spread on default:dirt again (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Jun 16, 2020
1 parent d03d7e9 commit e8a7e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mods/default/functions.lua
Expand Up @@ -501,7 +501,7 @@ end


--
-- Convert dirt to something that fits the environment
-- Convert default:dirt to something that fits the environment
--

minetest.register_abm({
Expand All @@ -510,6 +510,7 @@ minetest.register_abm({
neighbors = {
"air",
"group:grass",
"group:dry_grass",
"default:snow",
},
interval = 6,
Expand Down Expand Up @@ -538,6 +539,8 @@ minetest.register_abm({
minetest.set_node(pos, {name = "default:dirt_with_snow"})
elseif minetest.get_item_group(name, "grass") ~= 0 then
minetest.set_node(pos, {name = "default:dirt_with_grass"})
elseif minetest.get_item_group(name, "dry_grass") ~= 0 then
minetest.set_node(pos, {name = "default:dirt_with_dry_grass"})
end
end
})
Expand Down
2 changes: 1 addition & 1 deletion mods/default/nodes.lua
Expand Up @@ -463,7 +463,7 @@ minetest.register_node("default:dirt_with_dry_grass", {
"default_dirt.png",
{name = "default_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "default:dirt",
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},
Expand Down

0 comments on commit e8a7e75

Please sign in to comment.