From d0896c21f2311d0d02ec65429a07cfc8d4b61177 Mon Sep 17 00:00:00 2001 From: Fayti1703 Date: Fri, 13 Sep 2019 07:40:26 +0200 Subject: [PATCH] Move mkdir out of if nil check Fixes an issue where if you tried to randomize twice without restarting the program Reported by @periwinkle, at https://discordapp.com/channels/558603545008537600/558604014149828608/621887224216158238 --- src/randomizer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/randomizer.lua b/src/randomizer.lua index 6d4204c..03f6cd4 100644 --- a/src/randomizer.lua +++ b/src/randomizer.lua @@ -214,9 +214,9 @@ function C:_getWritePaths() self._writePathStage = (self._isCaveStoryPlus) and (self._writePath .. '/base/Stage') or (self._writePath .. '/Stage') - -- Create /data(/base)/Stage if it doesn't already exist. - mkdir(self._writePathStage) end + -- Create /data(/base)/Stage if it doesn't already exist. + mkdir(self._writePathStage) return self._writePath, self._writePathStage end