mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-25 22:47:14 +00:00
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:
parent
07a33104aa
commit
d0896c21f2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue