Don't provide non custom icon data if the user is using a custom icon

This commit is contained in:
2026-02-02 14:11:52 -07:00
parent 7c24b22276
commit 9ce2d8e6ab

View File

@@ -112,10 +112,14 @@ export async function handler (context: Context, type: number) {
id: row.id, id: row.id,
username: row.username, username: row.username,
value, value,
icon: savedata.bird?.icon ?? 1, icon: customIcon ? 1 : savedata.bird?.icon ?? 1,
overlay: savedata.bird?.overlay ?? 0, overlay: customIcon ? 0 : savedata.bird?.overlay ?? 0,
birdColor: savedata.settings?.colors?.icon ?? [255, 255, 255], birdColor: customIcon
overlayColor: savedata.settings?.colors?.overlay ?? [255, 255, 255], ? [255, 255, 255]
: savedata.settings?.colors?.icon ?? [255, 255, 255],
overlayColor: customIcon
? [255, 255, 255]
: savedata.settings?.colors?.overlay ?? [255, 255, 255],
customIcon customIcon
}) })
} }