fixed the encounter window
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Jovian.EncounterSystem {
|
||||
}
|
||||
|
||||
public void OnEncounterTriggered(IEncounter encounter) {
|
||||
if(encounter?.Kind is not QuestKind questKind) {
|
||||
if(encounter?.EncounterDefinition.Kind is not QuestKind questKind) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Jovian.EncounterSystem {
|
||||
}
|
||||
|
||||
foreach(var encounter in table.encounters) {
|
||||
if(encounter?.Kind is not QuestKind questKind) {
|
||||
if(encounter?.EncounterDefinition.Kind is not QuestKind questKind) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user