From b3f3aa56bdae15fe7746731ee3287994439554d1 Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Thu, 7 Aug 2025 13:41:10 -0400 Subject: [PATCH] Resolved kev's commnet --- src/utils/common.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/common.ts b/src/utils/common.ts index a522d9cac22..84742609fb2 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -126,9 +126,7 @@ export function randItem(items: T[]): T { } export function randSeedItem(items: T[] | readonly T[]): T { - // TODO: Resolve this later - // @ts-expect-error - phaser is dumb af - return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items); + return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items as T[]); } export function randSeedWeightedItem(items: T[]): T {