fix ActivityContentManager

This commit is contained in:
2024-11-23 08:50:38 +01:00
parent 83d705c4c6
commit ca28a9d6f7

View File

@@ -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);