From 40a7bb9aaa7b1c97ebb15081bc8fb20aea2a1d34 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 27 Oct 2013 20:42:31 +0100 Subject: [PATCH] use tab instead of " " --- init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 510e166..2b4c3e6 100644 --- a/init.lua +++ b/init.lua @@ -229,7 +229,7 @@ minetest.register_abm({ and (not conifers:is_node_in_cube({"conifers:trunk"}, pos, CONIFERS_DISTANCE)) then conifers:make_conifer(p, math.random(0, 1)) end - end + end }) -- Saplings. @@ -242,7 +242,7 @@ minetest.register_abm({ if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" then conifers:make_conifer(pos, math.random(0, 1)) end - end + end }) -- Should we remove all the trees above the conifers altitude? @@ -278,12 +278,12 @@ end -- Taken from the Flowers mod by erlehmann. -- function conifers:table_contains(t, v) - for _,i in ipairs(t) do + for _,i in ipairs(t) do if i == v then return true end - end - return false + end + return false end -- @@ -293,7 +293,7 @@ end -- function conifers:is_node_in_cube(nodenames, pos, size) local hs = math.floor(size / 2) - for x = pos.x-size, pos.x+size do + for x = pos.x-size, pos.x+size do for y = pos.y-hs, pos.y+hs do for z = pos.z-size, pos.z+size do n = minetest.get_node_or_nil({x=x, y=y, z=z}) @@ -304,8 +304,8 @@ function conifers:is_node_in_cube(nodenames, pos, size) end end end - end - return false + end + return false end --