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 = {}