mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 00:21:07 +01:00
Fix empty if-branch in lush caves
This commit is contained in:
parent
55926e3f4f
commit
e179fb8aed
1 changed files with 6 additions and 6 deletions
|
@ -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 x_distance = math.abs(pos.x - conversion_pos.x)
|
||||||
local z_distance = math.abs(pos.z - conversion_pos.z)
|
local z_distance = math.abs(pos.z - conversion_pos.z)
|
||||||
|
|
||||||
if x_distance == x_max and z_distance == z_max then
|
if not ( x_distance == x_max and z_distance == z_max ) then
|
||||||
-- no moss here
|
if x_distance == x_max or z_distance == z_max then
|
||||||
elseif x_distance == x_max or z_distance == z_max then
|
if math.random() < 0.75 then
|
||||||
if math.random() < 0.75 then
|
set_moss_with_chance_vegetation(conversion_pos)
|
||||||
|
end
|
||||||
|
else
|
||||||
set_moss_with_chance_vegetation(conversion_pos)
|
set_moss_with_chance_vegetation(conversion_pos)
|
||||||
end
|
end
|
||||||
else
|
|
||||||
set_moss_with_chance_vegetation(conversion_pos)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue