From 6529ea3cc402a3d654465f64a763e0ed28e157be Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 11 Jan 2023 18:44:49 +0000 Subject: [PATCH] Update 'Controller/wheatController.lua' --- Controller/wheatController.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/wheatController.lua b/Controller/wheatController.lua index a14f235..5b0e90b 100644 --- a/Controller/wheatController.lua +++ b/Controller/wheatController.lua @@ -18,13 +18,13 @@ end function toArray(str) local len = str:len() - local comma = str:sub(",") + local comma = str:find(",") local arr = {} while(type(comma)=="number") do arr[#arr+1] = str:sub(1, comma-1) str = str:sub(comma + 1, len) len = str:len() - comma = str:sub(",") + comma = str:find(",") end return arr end \ No newline at end of file