summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@linux-forks.de>2018-11-14 12:46:43 +0100
committerroot <root@linux-forks.de>2018-11-14 12:46:43 +0100
commit47386923abf10bdd974ab60c1a81113773c7d54c (patch)
treeab8cf3b499b5785d82d3de6560284a7d562f61b9
parent4c911558ed46382bdba776a24f1c41559686c12f (diff)
parent5665c806576f3964b71264637571f8ae563f9d4e (diff)
Merge branch 'master' of https://notabug.org/TenPlus1/wineHEADmaster
-rw-r--r--init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index c3d1aa1..fe0c042 100644
--- a/init.lua
+++ b/init.lua
@@ -276,9 +276,14 @@ minetest.register_abm({
nodenames = {"wine:blue_agave"},
neighbors = {"default:desert_sand"},
interval = 17,
- chance = 33,
+ chance = 76,
action = function(pos, node)
+ local light = minetest.get_node_light(pos)
+ if not light or light < 13 then
+ return
+ end
+
local n = minetest.find_nodes_in_area_under_air(
{x = pos.x + 2, y = pos.y + 1, z = pos.z + 2},
{x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},