diff --git a/src/brulijam/t-farmer.lua b/src/brulijam/t-farmer.lua index f472caf..e4a051d 100644 --- a/src/brulijam/t-farmer.lua +++ b/src/brulijam/t-farmer.lua @@ -8,7 +8,7 @@ local toPlant = { [3] = "minecraft:carrot", } -local function selectSeed() +function selectSeed() for i=1, 16 do turtle.select(i) itemDetail = turtle.getItemDetail() @@ -45,7 +45,7 @@ local function doField() turtle.forward() end -- move to next row - if i%2==1 then + if j%2==1 then turtle.turnRight() turtle.forward() turtle.turnRight()