diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index c159e63..ca7d011 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -41,7 +41,9 @@ minetest.register_abm({ chance = BLOSSOM_CHANCE, action = function(pos, node, active_object_count, active_object_count_wider) - nature:grow_node(pos, BLOSSOM_NODE) + if nature:is_near_water(pos) then + nature:grow_node(pos, BLOSSOM_NODE) + end end }) diff --git a/nature_classic/config.lua b/nature_classic/config.lua index 49278e0..2862bc7 100644 --- a/nature_classic/config.lua +++ b/nature_classic/config.lua @@ -1,6 +1,6 @@ -- Set on which distance from water can the tree still grow. -- Grows anywhere if set to -1. -DISTANCE_FROM_WATER = -1 +DISTANCE_FROM_WATER = 20 -- Minimum light level needed to grow. Default is 8, which means daylight. MINIMUM_GROWTH_LIGHT = 8