diff --git a/src/skilltree/skillTreeEditor.js b/src/skilltree/skillTreeEditor.js index 48bc57e..d709aaf 100644 --- a/src/skilltree/skillTreeEditor.js +++ b/src/skilltree/skillTreeEditor.js @@ -65,18 +65,20 @@ function SkillTreeEditor(p) { for (var x=0;x{ - var string = [...skillLines] - var stringLine = string[y].split('') - stringLine[x] = char - string[y] = stringLine.join('') - setSkillLines(string) - } - } ADJUSTMENT={ADJUSTMENT} x={x} y={y} gridSizeX={gridSizeX} gridSizeY={gridSizeY} padX={padX} padY={padY}/>) + if (y{ + var string = [...skillLines] + var stringLine = string[y].split('') + stringLine[x] = char + string[y] = stringLine.join('') + setSkillLines(string) + } + } ADJUSTMENT={ADJUSTMENT} x={x} y={y} gridSizeX={gridSizeX} gridSizeY={gridSizeY} padX={padX} padY={padY}/>) + } } } setRenderedInputs(controls) - },[skillLines,gridSizeX,gridSizeY,gridPaddingX,gridPaddingY,cl]) + },[skillLines,gridSizeX,gridSizeY,gridPaddingX,gridPaddingY,cl,dimensionY,dimensionX]) return <>