From 3f9eace43c60b7c9892e677e62c5d5ded99a368b Mon Sep 17 00:00:00 2001 From: tommy aka doge <59783653+dowoge@users.noreply.github.com> Date: Sun, 11 Sep 2022 23:01:01 -0400 Subject: [PATCH] games can only be indexed by "surf" or "bhop" instead of pattern matched string --- src/modules/strafes_net.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/strafes_net.lua b/src/modules/strafes_net.lua index d72ec49..2eff6da 100644 --- a/src/modules/strafes_net.lua +++ b/src/modules/strafes_net.lua @@ -31,7 +31,7 @@ setmetatable(STYLES,{__index=function(self,i) end}) setmetatable(GAMES,{__index=function(self,i) 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] end end