From 1a04105afbc7ee723f7c643969dc6eb4805fe70b Mon Sep 17 00:00:00 2001 From: tommy aka doge <59783653+dowoge@users.noreply.github.com> Date: Mon, 8 Aug 2022 21:41:56 -0400 Subject: [PATCH] better skill calculation --- src/modules/commands/download.lua | 2 +- src/modules/commands/skillCalc.lua | 22 ++++++++++++---------- src/modules/strafes_net.lua | 11 ++++++++++- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/modules/commands/download.lua b/src/modules/commands/download.lua index ba92f74..b9d90c9 100644 --- a/src/modules/commands/download.lua +++ b/src/modules/commands/download.lua @@ -20,7 +20,7 @@ function split(s,d) end function clearTmp() - for file in io.popen([[dir "./tmp" /b]]):lines() do os.remove('./tmp/'..file) end + for file in io.popen([[dir "./tmp" /b]]):lines() do if file then os.remove('./tmp/'..file) end end end commands:Add('yt',{},"wip", function(t) diff --git a/src/modules/commands/skillCalc.lua b/src/modules/commands/skillCalc.lua index ec19238..582e2ea 100644 --- a/src/modules/commands/skillCalc.lua +++ b/src/modules/commands/skillCalc.lua @@ -52,26 +52,28 @@ commands:Add('skill',{},'skill