fix ActivityContentManager
This commit is contained in:
@@ -40,6 +40,14 @@ public class ActivityContextManager : IDisposable
|
|||||||
ActivityType newActivityContext;
|
ActivityType newActivityContext;
|
||||||
ZoneType newZoneType;
|
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)
|
if (content.PvP)
|
||||||
{
|
{
|
||||||
newActivityContext = ActivityType.PvpDuty;
|
newActivityContext = ActivityType.PvpDuty;
|
||||||
@@ -66,6 +74,7 @@ public class ActivityContextManager : IDisposable
|
|||||||
_ => ZoneType.Doungen,
|
_ => ZoneType.Doungen,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CurrentActivityContext = new(newActivityContext, newZoneType);
|
CurrentActivityContext = new(newActivityContext, newZoneType);
|
||||||
ActivityContextChanged?.Invoke(this, CurrentActivityContext);
|
ActivityContextChanged?.Invoke(this, CurrentActivityContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user