Don't provide non custom icon data if the user is using a custom icon
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user