fix(inferium-harvester): syntax errors

This commit is contained in:
Guillaume ARM 2024-05-20 19:15:57 +02:00
parent 0b724c7334
commit daa36c82de

View File

@ -1,7 +1,7 @@
local turtleUtils = require('libs/turtle-utils') local turtleUtils = require('libs/turtle-utils')
local config = require('config/harvesting') local config = require('config/harvesting')
local VERSION = "0.5.0 local VERSION = "0.5.0"
local IDLE_TIME = 2 local IDLE_TIME = 2
local WAIT_ITEM_IDLE_TIME = 5 local WAIT_ITEM_IDLE_TIME = 5
local MIN_FUEL_NEEDED = (100 + config.firstCropZ + config.length) * 2 local MIN_FUEL_NEEDED = (100 + config.firstCropZ + config.length) * 2
@ -64,7 +64,7 @@ local function removeFirst(t, x)
end end
end end
local function find(t, predicate) do local function find(t, predicate)
for k,v in pairs(t) do for k,v in pairs(t) do
if predicate(v, k) then if predicate(v, k) then
return v, k return v, k
@ -441,4 +441,4 @@ local function main()
end end
end end
main() main()