mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +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
@@ -40,6 +40,7 @@ import noppes.npcs.entity.EntityNPCInterface;
|
||||
import noppes.npcs.items.ItemExcalibur;
|
||||
import noppes.npcs.items.ItemShield;
|
||||
import noppes.npcs.items.ItemSoulstoneEmpty;
|
||||
import noppes.npcs.quests.QuestItem;
|
||||
import noppes.npcs.quests.QuestKill;
|
||||
import noppes.npcs.roles.RoleFollower;
|
||||
|
||||
@@ -345,6 +346,7 @@ public class ServerEventsHandler {
|
||||
return;
|
||||
PlayerData playerData = PlayerDataController.instance.getPlayerData(event.entityPlayer);
|
||||
PlayerQuestData questData = playerData.questData;
|
||||
QuestItem.pickedUp = event.item.getEntityItem();
|
||||
questData.checkQuestCompletion(playerData, EnumQuestType.Item);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user