mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 17:32:53 +08:00
Send QUEST_COND_NONE on every login (#2386)
For players that enabled questing late
This commit is contained in:
parent
5faf39d359
commit
b6e7d69949
@ -1378,14 +1378,6 @@ public class Player implements PlayerHook, FieldFetch {
|
|||||||
this.getPlayerProgress().setPlayer(this); // Add reference to the player.
|
this.getPlayerProgress().setPlayer(this); // Add reference to the player.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Invoked when the player selects their avatar.
|
|
||||||
*/
|
|
||||||
public void onPlayerBorn() {
|
|
||||||
Grasscutter.getThreadPool().submit(
|
|
||||||
this.getQuestManager()::onPlayerBorn);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onLogin() {
|
public void onLogin() {
|
||||||
// Quest - Commented out because a problem is caused if you log out while this quest is active
|
// Quest - Commented out because a problem is caused if you log out while this quest is active
|
||||||
/*
|
/*
|
||||||
|
@ -221,14 +221,11 @@ public final class QuestManager extends BasePlayerManager {
|
|||||||
this.player.sendPacket(new PacketGivingRecordNotify(this.getGivingRecords()));
|
this.player.sendPacket(new PacketGivingRecordNotify(this.getGivingRecords()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPlayerBorn() {
|
public void onLogin() {
|
||||||
if (this.isQuestingEnabled()) {
|
if (this.isQuestingEnabled()) {
|
||||||
this.enableQuests();
|
this.enableQuests();
|
||||||
this.sendGivingRecords();
|
this.sendGivingRecords();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void onLogin() {
|
|
||||||
|
|
||||||
List<GameMainQuest> activeQuests = getActiveMainQuests();
|
List<GameMainQuest> activeQuests = getActiveMainQuests();
|
||||||
List<GameQuest> activeSubs = new ArrayList<>(activeQuests.size());
|
List<GameQuest> activeSubs = new ArrayList<>(activeQuests.size());
|
||||||
|
@ -69,7 +69,6 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
|
|||||||
|
|
||||||
// Login done
|
// Login done
|
||||||
session.getPlayer().onLogin();
|
session.getPlayer().onLogin();
|
||||||
session.getPlayer().onPlayerBorn();
|
|
||||||
|
|
||||||
// Born resp packet
|
// Born resp packet
|
||||||
session.send(new BasePacket(PacketOpcodes.SetPlayerBornDataRsp));
|
session.send(new BasePacket(PacketOpcodes.SetPlayerBornDataRsp));
|
||||||
|
Loading…
Reference in New Issue
Block a user