From 69714cbd7c44d9adb6c93ec9c9990ed9bde8686b Mon Sep 17 00:00:00 2001 From: Zweihorn Date: Sun, 19 May 2019 13:01:11 +0200 Subject: [PATCH] Depollute the code - 04a - bloody spaces & brown mushrooms --- mods/flowers/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/flowers/init.lua b/mods/flowers/init.lua index 80a6cd9..3b776a1 100644 --- a/mods/flowers/init.lua +++ b/mods/flowers/init.lua @@ -239,10 +239,10 @@ function flowers.mushroom_spread(pos, node) end local pos2 = positions[math.random(#positions)] pos2.y = pos2.y + 1 - if minetest.get_node_light(pos, 0.5) > 3 then - if minetest.get_node_light(pos, nil) == 15 then - minetest.remove_node(pos) - end + if minetest.get_node_light(pos, 0.5) > 3 then + if minetest.get_node_light(pos, nil) == 15 then + minetest.remove_node(pos) + end minetest.set_node(pos2, {name = node.name}) end end