Skip to content


Flora spread: Do not replace flora with dry shrub, only 'return'
Browse files Browse the repository at this point in the history
If there is no group:soil node found below, do not replace flora with
dry shrub, this was breaking flower pots and other mods.
Originally, flora would only turn to dry shrub if in desert sand.
  • Loading branch information
paramat committed Mar 22, 2017
1 parent 86fd616 commit 91182d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mods/flowers/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ function flowers.flower_spread(pos, node)
pos.y = pos.y - 1
local under = minetest.get_node(pos)
pos.y = pos.y + 1
if minetest.get_item_group(, "soil") == 0 and
-- Do not replace sand dune grasses ~= "default:sand" then
minetest.set_node(pos, {name = "default:dry_shrub"})
if minetest.get_item_group(, "soil") == 0 then
-- Do not replace with dry shrub here as
-- this breaks flower pots and other mods.

Expand Down

0 comments on commit 91182d6

Please sign in to comment.