Update generationSlice.ts

This commit is contained in:
Jonathan 2023-02-09 06:31:57 -06:00 committed by blessedcoolant
parent 28eaffa188
commit c977d295f5

View File

@ -276,8 +276,13 @@ export const generationSlice = createSlice({
} else {
state.threshold = threshold;
}
if (perlin) state.perlin = perlin;
if (typeof perlin === 'undefined') state.perlin = 0;
if (typeof perlin === 'undefined') {
state.perlin = perlin;
}
else
{
state.perlin = 0;
}
if (typeof seamless === 'boolean') state.seamless = seamless;
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
if (width) state.width = width;