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;