1
This commit is contained in:
@@ -22,11 +22,10 @@ namespace BITKit
|
||||
protected override void OnStop(bool interrupted)
|
||||
{
|
||||
base.OnStop(interrupted);
|
||||
if (interrupted)
|
||||
{
|
||||
if(output.isDefined)
|
||||
QuestSystem.Cancel(output.value);
|
||||
}
|
||||
if (!interrupted) return;
|
||||
if (QuestSystem.quests.TryGetValue(output.value, out var info) &&
|
||||
info.State == QuestSystem.State.InProcess)
|
||||
QuestSystem.Cancel(output.value);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user