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