-Quests with complete text now complete the quest in data before showing the text GUI, instead of being completed when that GUI is closed.

Item Quests:
Some fixes to item quest completion when an item is picked up.
This commit is contained in:
Luis C.M committed 2022-06-13 04:08:36 -05:00
1 parent 1293fabca9
commit dfec85484b
7 files changed
+17 -11

No files matched your search

@@ -302,10 +302,9 @@ public class NoppesUtil {
public static void guiQuestCompletion(EntityPlayer player, NBTTagCompound read) {
Quest quest = new Quest();
quest.readNBT(read);
if (!quest.completeText.equals(""))
if (!quest.completeText.isEmpty()) {
NoppesUtil.openGUI(player, new GuiQuestCompletion(quest));
else
NoppesUtilPlayer.sendData(EnumPlayerPacket.QuestCompletion, quest.id);
}
}
public static void openDialog(NBTTagCompound compound, EntityNPCInterface npc, EntityPlayer player){