mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 23:25:07 +00:00
Add Insane Sync Data Control from BACK in the BROKEN 1.9 BETA >:D
This commit is contained in:
1 parent
d225122016
commit
dd7a0b7f12
25 files changed
+435
-79
No files matched your search
@@ -204,6 +204,8 @@ public class PlayerQuestData implements IPlayerQuestData {
|
||||
activeQuests.put(id, questdata);
|
||||
Server.sendData((EntityPlayerMP)parent.player, EnumPacketClient.MESSAGE, "quest.newquest", quest.title);
|
||||
Server.sendData((EntityPlayerMP)parent.player, EnumPacketClient.CHAT, "quest.newquest", ": ", quest.title);
|
||||
|
||||
parent.updateClient = true;
|
||||
}
|
||||
|
||||
public void finishQuest(int id) {
|
||||
@@ -215,6 +217,8 @@ public class PlayerQuestData implements IPlayerQuestData {
|
||||
finishedQuests.put(quest.id, System.currentTimeMillis());
|
||||
else
|
||||
finishedQuests.put(quest.id, parent.player.worldObj.getTotalWorldTime());
|
||||
|
||||
parent.updateClient = true;
|
||||
}
|
||||
|
||||
public void stopQuest(int id) {
|
||||
@@ -222,6 +226,7 @@ public class PlayerQuestData implements IPlayerQuestData {
|
||||
if (quest == null)
|
||||
return;
|
||||
activeQuests.remove(id);
|
||||
parent.updateClient = true;
|
||||
}
|
||||
|
||||
public void removeQuest(int id) {
|
||||
@@ -230,6 +235,7 @@ public class PlayerQuestData implements IPlayerQuestData {
|
||||
return;
|
||||
activeQuests.remove(id);
|
||||
finishedQuests.remove(id);
|
||||
parent.updateClient = true;
|
||||
}
|
||||
|
||||
public boolean hasFinishedQuest(int id){
|
||||
|
||||
Reference in new issue
Block a user