diff --git a/client/src/components/Starmap/StarmapShip.tsx b/client/src/components/Starmap/StarmapShip.tsx index d4d67a97..9787fc60 100644 --- a/client/src/components/Starmap/StarmapShip.tsx +++ b/client/src/components/Starmap/StarmapShip.tsx @@ -47,6 +47,7 @@ export function StarmapShip({ const isNotViewscreen = useStarmapStore( store => store.viewingMode !== "viewscreen" ); + const isCore = useStarmapStore(store => store.viewingMode === "core"); const group = useRef(null); const shipMesh = useRef(null); @@ -79,6 +80,7 @@ export function StarmapShip({ // Autopilot Destination if (lineRef.current && group.current) { if ( + isCore && // TODO September 14, 2022 - Make it so you can toggle autopilot lines on and off // useConfigStore.getState().includeAutopilotData && shipAutopilot?.destinationPosition @@ -99,7 +101,7 @@ export function StarmapShip({ lineRef.current.geometry.attributes.position.needsUpdate = true; lineRef.current.visible = true; } else { - // lineRef.current.visible = false; + lineRef.current.visible = false; } } });