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
This commit is contained in:
Fayti1703 2019-09-13 07:40:26 +02:00
parent 07a33104aa
commit d0896c21f2

View file

@ -214,9 +214,9 @@ function C:_getWritePaths()
self._writePathStage = (self._isCaveStoryPlus)
and (self._writePath .. '/base/Stage')
or (self._writePath .. '/Stage')
end
-- Create /data(/base)/Stage if it doesn't already exist.
mkdir(self._writePathStage)
end
return self._writePath, self._writePathStage
end