From 51ed914f39519d2abc7ebee4a74a924b1af8a915 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 19 May 2023 08:11:15 -0500 Subject: [PATCH] Fixed stars appearing erroneously --- src/data/nodeTypes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/nodeTypes.tsx b/src/data/nodeTypes.tsx index dd6767a..f8b7db4 100644 --- a/src/data/nodeTypes.tsx +++ b/src/data/nodeTypes.tsx @@ -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;