fix ActivityContentManager
This commit is contained in:
@@ -40,6 +40,14 @@ public class ActivityContextManager : IDisposable
|
||||
ActivityType newActivityContext;
|
||||
ZoneType newZoneType;
|
||||
|
||||
if (content.RowId == 0)
|
||||
{
|
||||
// No content found, so we must be on the overworld
|
||||
newActivityContext = ActivityType.None;
|
||||
newZoneType = ZoneType.Overworld;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (content.PvP)
|
||||
{
|
||||
newActivityContext = ActivityType.PvpDuty;
|
||||
@@ -66,6 +74,7 @@ public class ActivityContextManager : IDisposable
|
||||
_ => ZoneType.Doungen,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
CurrentActivityContext = new(newActivityContext, newZoneType);
|
||||
ActivityContextChanged?.Invoke(this, CurrentActivityContext);
|
||||
|
||||
Reference in New Issue
Block a user