mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: the game will crash when finish a challenge and exit
This commit is contained in:
@@ -10,7 +10,7 @@ public class ChallengeData : BaseDatabaseDataHelper
|
||||
[SugarColumn(IsJson = true)] public Dictionary<int, ChallengeHistoryData> History { get; set; } = new();
|
||||
|
||||
[SugarColumn(IsNullable = true)] public string? ChallengeInstance { get; set; }
|
||||
[SugarColumn(IsNullable = true)] public string? Instance { get; set; } = null; // placeholder
|
||||
[SugarColumn] public string Instance { get; set; } = ""; // placeholder
|
||||
|
||||
[SugarColumn(IsJson = true)] public Dictionary<int, ChallengeGroupReward> TakenRewards { get; set; } = new();
|
||||
[SugarColumn(IsJson = true)] public Dictionary<int, ChallengePeakLevelData> PeakLevelDatas { get; set; } = new();
|
||||
|
||||
@@ -16,7 +16,7 @@ public class PacketGetCurChallengeScRsp : BasePacket
|
||||
proto.CurChallenge = inst.ToProto();
|
||||
Task.Run(async () =>
|
||||
{
|
||||
await player.LineupManager!.SetCurLineup(inst.GetCurrentExtraLineupType() + 10);
|
||||
await player.LineupManager!.SetExtraLineup((ExtraLineupType)inst.GetCurrentExtraLineupType());
|
||||
}).Wait();
|
||||
var proto1 = player.LineupManager?.GetExtraLineup(ExtraLineupType.LineupChallenge)?.ToProto();
|
||||
if (proto1 != null)
|
||||
|
||||
Reference in New Issue
Block a user