From 115da4498b84967c906ec85fd83523bc25ba3230 Mon Sep 17 00:00:00 2001 From: Brian Beck Date: Wed, 26 Nov 2025 17:39:18 -0800 Subject: [PATCH] skip reference types in Turret for now, handle variable references in the future --- src/components/Turret.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Turret.tsx b/src/components/Turret.tsx index 77f91823..43df5f74 100644 --- a/src/components/Turret.tsx +++ b/src/components/Turret.tsx @@ -43,9 +43,11 @@ export function Turret({ object }: { object: ConsoleObject }) { const scale = useMemo(() => getScale(object), [object]); const shapeName = getDataBlockShape(dataBlock); - const barrelShapeName = initialBarrel - ? getDataBlockShape(initialBarrel) - : undefined; + + const barrelShapeName = + typeof initialBarrel === "string" + ? getDataBlockShape(initialBarrel) + : undefined; if (!shapeName) { console.error(` missing shape for dataBlock: ${dataBlock}`);