Arrays still start at 1...

This commit is contained in:
Kai Vogelgesang 2020-07-08 12:32:40 +02:00
parent a6a0d9f932
commit 343e393780

View File

@ -48,7 +48,7 @@ local function calculate_tree_position(row_index, tree_index)
local x = (row_index - 1) * 5
local z
if row_index % 2 == 0 then
if row_index % 2 == 1 then
z = -2 * tree_index
else
z = -30 + 2 * tree_index