From 0c42fdaa8e099b15b83d65654e9a457d791c916e Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Sat, 27 Jun 2026 18:04:28 -0500 Subject: [PATCH] removed debug statements from previous commit and (hopefully) fixed the array not empty check, since the check was designed for tables and not arrays --- main.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.lua b/main.lua index c44a24b..8195aa6 100644 --- a/main.lua +++ b/main.lua @@ -487,16 +487,11 @@ end function PollVelocity() local velSensors = { peripheral.find("velocity_sensor") } - if (Config.Debug) then - print("DEBUG: Found "..#velSensors.." velocity sensors.") - print("DEBUG: Velocity sensors: "..tableToString(velSensors)) - end -- Velocity Sensors VelocityVectors = {} - local next = next - if next(velSensors) == nil then -- verify table is not empty + if velSensors[0] == nil then -- verify array is not empty SensorData.Velocity = {}