Skip to content

Commit

Permalink
Use specific background textures
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Nov 4, 2023
1 parent 5bba31e commit fbfce7d
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 fbfce7d

Please sign in to comment.