mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
Fix booster not selecting portals
This commit is contained in:
parent
de1f37d732
commit
20ae53458b
1 changed files with 2 additions and 2 deletions
|
@ -296,12 +296,12 @@ export function onDropPortal(node: BoardNode, otherNode: BoardNode) {
|
||||||
if (portals.includes(portal)) {
|
if (portals.includes(portal)) {
|
||||||
node.state = {
|
node.state = {
|
||||||
...(node.state as object),
|
...(node.state as object),
|
||||||
tools: portals.filter(r => r !== portal)
|
portals: portals.filter(r => r !== portal)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
node.state = {
|
node.state = {
|
||||||
...(node.state as object),
|
...(node.state as object),
|
||||||
tools: [...portals, portal]
|
portals: [...portals, portal]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
main.board.selectedNode.value = node;
|
main.board.selectedNode.value = node;
|
||||||
|
|
Loading…
Reference in a new issue