games can only be indexed by "surf" or "bhop" instead of pattern matched string
This commit is contained in:
parent
6b2a341be5
commit
3f9eace43c
@ -31,7 +31,7 @@ setmetatable(STYLES,{__index=function(self,i)
|
|||||||
end})
|
end})
|
||||||
setmetatable(GAMES,{__index=function(self,i)
|
setmetatable(GAMES,{__index=function(self,i)
|
||||||
for ix,v in pairs(self) do
|
for ix,v in pairs(self) do
|
||||||
if string.sub(tostring(ix):lower(),1,#i):find(i:lower()) then
|
if tostring(ix):lower()==i:lower() then
|
||||||
return self[ix]
|
return self[ix]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user