Fixed stars appearing erroneously

This commit is contained in:
thepaperpilot 2023-05-19 08:11:15 -05:00
parent a8e6f0832a
commit 51ed914f39

View file

@ -287,7 +287,7 @@ export const resource = {
)
}),
draggable: true,
showStar: node => (node.state as unknown as ResourceState).type in main.toolNodes.value,
showStar: node => main.toolNodes.value[(node.state as unknown as ResourceState).type] != null,
fillStar: node =>
`${(node.state as unknown as ResourceState).type}Relic` in main.toolNodes.value
} as NodeTypeOptions;