mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
Fix complain
This commit is contained in:
parent
9163b840b9
commit
feef047cdb
1 changed files with 2 additions and 1 deletions
|
@ -584,7 +584,8 @@ const factory = createLayer(id, () => {
|
|||
y = roundDownTo(y - ty, blockSize) / blockSize;
|
||||
if (e.button === 0) {
|
||||
if (compSelected.value !== "cursor") {
|
||||
if (!components.value[x + "x" + y]) addFactoryComp(x, y, compSelected.value);
|
||||
if (components.value[x + "x" + y] === undefined)
|
||||
addFactoryComp(x, y, compSelected.value);
|
||||
}
|
||||
} else if (e.button === 2) {
|
||||
const data = compInternalData[x + "x" + y];
|
||||
|
|
Loading…
Add table
Reference in a new issue