Skip to content

Commit

Permalink
Use specific background textures (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom authored Nov 4, 2023
1 parent 1508985 commit 18867ad
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions odysseus/convertFtbQuests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,14 @@ function truncateLong(value: Long | undefined) {
function iconBackgroundTexture(
iconBackground: QuestShape | undefined,
): ResourceLocation | undefined {
return iconBackground === undefined
? undefined
: `heracles:textures/gui/quest_backgrounds/${iconBackground}s.png`;
if (!iconBackground || iconBackground === "square") {
return;
}

const textureName =
iconBackground === "rsquare" ? "rounded_square" : iconBackground;

return `heracles:textures/gui/quest_backgrounds/${textureName}s.png`;
}

export const convertFtbQuests = async (
Expand Down

0 comments on commit 18867ad

Please sign in to comment.