From e179fb8aed5142adfabb380af3931028d6e999ba Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 27 Nov 2023 19:14:03 +0100 Subject: [PATCH] Fix empty if-branch in lush caves --- mods/ITEMS/mcl_lush_caves/nodes.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ITEMS/mcl_lush_caves/nodes.lua b/mods/ITEMS/mcl_lush_caves/nodes.lua index 04e6112e7..dc6df0746 100644 --- a/mods/ITEMS/mcl_lush_caves/nodes.lua +++ b/mods/ITEMS/mcl_lush_caves/nodes.lua @@ -60,14 +60,14 @@ function mcl_lush_caves.bone_meal_moss(itemstack, placer, pointed_thing, pos) local x_distance = math.abs(pos.x - conversion_pos.x) local z_distance = math.abs(pos.z - conversion_pos.z) - if x_distance == x_max and z_distance == z_max then - -- no moss here - elseif x_distance == x_max or z_distance == z_max then - if math.random() < 0.75 then + if not ( x_distance == x_max and z_distance == z_max ) then + if x_distance == x_max or z_distance == z_max then + if math.random() < 0.75 then + set_moss_with_chance_vegetation(conversion_pos) + end + else set_moss_with_chance_vegetation(conversion_pos) end - else - set_moss_with_chance_vegetation(conversion_pos) end end return true