Update 'Controller/wheatController.lua'

This commit is contained in:
manuel 2023-01-11 18:44:49 +00:00
parent c01c7f4b9e
commit 6529ea3cc4

View File

@ -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