fix: default isPump

This commit is contained in:
TrèsAbhi committed 2025-12-19 15:20:58 -06:00
1 parent 8929e503ea
commit 102abf49c4
1 file changed
+4 -4
@@ -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;