From d9299219de8b94d8c32056f8d88ef4346e298f46 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 22 Sep 2018 18:45:10 +0000 Subject: [PATCH] There is no need for isRealQuest method, also proper html path. --- .../l2jmobius/gameserver/model/quest/Quest.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/model/quest/Quest.java b/L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/model/quest/Quest.java index 06a00951a6..7c6f384d56 100644 --- a/L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/model/quest/Quest.java +++ b/L2J_Mobius_C6_Interlude/java/com/l2jmobius/gameserver/model/quest/Quest.java @@ -1859,21 +1859,12 @@ public class Quest extends ManagedScript */ public String getHtmlText(String fileName) { - if (isRealQuest()) + if (_questId > 0) { - return HtmCache.getInstance().getHtmForce("./data/html/scripts/quests/" + getName() + "/" + fileName); + return HtmCache.getInstance().getHtmForce("data/scripts/quests/" + getName() + "/" + fileName); } - return HtmCache.getInstance().getHtmForce("./data/html/scripts/" + getDescr() + "/" + getName() + "/" + fileName); - } - - /** - * Return type of the quest. - * @return boolean : True for (live) quest, False for script, AI, etc. - */ - public boolean isRealQuest() - { - return _questId > 0; + return HtmCache.getInstance().getHtmForce("data/scripts/" + getDescr() + "/" + getName() + "/" + fileName); } // =========================================================