mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-26 15:07:56 +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)
|
self._writePathStage = (self._isCaveStoryPlus)
|
||||||
and (self._writePath .. '/base/Stage')
|
and (self._writePath .. '/base/Stage')
|
||||||
or (self._writePath .. '/Stage')
|
or (self._writePath .. '/Stage')
|
||||||
|
end
|
||||||
-- Create /data(/base)/Stage if it doesn't already exist.
|
-- Create /data(/base)/Stage if it doesn't already exist.
|
||||||
mkdir(self._writePathStage)
|
mkdir(self._writePathStage)
|
||||||
end
|
|
||||||
return self._writePath, self._writePathStage
|
return self._writePath, self._writePathStage
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue