From fbfce7d0e762ccb215febdc030196280d9e4566d Mon Sep 17 00:00:00 2001 From: MsRandom Date: Sat, 4 Nov 2023 22:17:35 +0300 Subject: [PATCH] Use specific background textures --- odysseus/convertFtbQuests.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/odysseus/convertFtbQuests.ts b/odysseus/convertFtbQuests.ts index ddf9e95..fa70eae 100644 --- a/odysseus/convertFtbQuests.ts +++ b/odysseus/convertFtbQuests.ts @@ -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 (