From 1747263d268558d6315849d695fe629072f1d24b Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Sun, 26 May 2024 03:50:55 +0200 Subject: [PATCH] fix(tunnels-miner): crash at first start --- tunnels-miner.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tunnels-miner.lua b/tunnels-miner.lua index 49f94a7..3c8a678 100644 --- a/tunnels-miner.lua +++ b/tunnels-miner.lua @@ -1,12 +1,12 @@ local STATIC_CONFIG = require('config/tunnels') -local turtleUtils = require('libs/turle-utils') +local turtleUtils = require('libs/turtle-utils') local IDLE_TIME = 3 local TIME_TO_START = 3 local IDLE_TIME_BETWEEN_TUNNELS = 1 local SPACE_BETWEEN_TUNNELS = 3 -local VERSION = "1.0.0" +local VERSION = "1.0.1" local MOVES_BY_DIRECTION = { right = { @@ -49,7 +49,7 @@ local function assertValidConfig(config) error('config.DIRECTION should be "left" or "right"', 0) end - if config.DISTANCE_Z > 0 then + if config.DISTANCE_Z <= 0 then error('config.DISTANCE_Z should be a positive number', 0) end