From 102abf49c44ce6e7d40fe82b8389af5842dceec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:20:58 -0600 Subject: [PATCH] fix: default isPump --- .../website-ue/src/core/tankopedia/characteristics.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/website-ue/src/core/tankopedia/characteristics.ts b/packages/website-ue/src/core/tankopedia/characteristics.ts index 41658e043..dc92dc064 100644 --- a/packages/website-ue/src/core/tankopedia/characteristics.ts +++ b/packages/website-ue/src/core/tankopedia/characteristics.ts @@ -28,10 +28,10 @@ export const characteristics = { ); }, - gun_type({ attribute, characteristic }) { - const isPump = attribute( - TankAttributeChange_AttributeName.ATTRIBUTE_NAME_IS_PUMP - ); + gun_type({ attributeSafe, characteristic }) { + const isPump = + attributeSafe(TankAttributeChange_AttributeName.ATTRIBUTE_NAME_IS_PUMP) ?? + 0; if (isPump === 1) return GunType.AutoReloader;