mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 19:46:43 +00:00
src/client/graphics/SpriteLoader.ts
This commit is contained in:
@@ -90,6 +90,9 @@ export const getColoredSprite = (
|
||||
}
|
||||
|
||||
const sprite = getSpriteForUnit(unit.type());
|
||||
if (sprite === null) {
|
||||
throw new Error(`Failed to load sprite for ${unit.type()}`);
|
||||
}
|
||||
|
||||
const territoryRgb = territoryColor.toRgb();
|
||||
const borderRgb = borderColor.toRgb();
|
||||
|
||||
Reference in New Issue
Block a user