mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 14:14:46 +00:00
Quests:
-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:
1 parent
1293fabca9
commit
dfec85484b
7 files changed
+17
-11
No files matched your search
@@ -384,6 +384,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
PlayerQuestData playerdata = PlayerDataController.instance.getPlayerData(player).questData;
|
||||
QuestData data = playerdata.getQuestCompletion(player, this);
|
||||
if (data != null){
|
||||
NoppesUtilPlayer.questCompletion((EntityPlayerMP) player, data.quest.id);
|
||||
Server.sendData((EntityPlayerMP)player, EnumPacketClient.QUEST_COMPLETION, data.quest.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
else if (dialog != null){
|
||||
|
||||
Reference in new issue
Block a user