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}`);