Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: fixed house checking bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jun 28, 2023
1 parent 4887233 commit bff9361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RotationSolver/Updaters/SocialUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal class SocialUpdater
public static TerritoryType[] HighEndDuties { get; private set; } = Array.Empty<TerritoryType>();

public static bool IsHouseArea(TerritoryType territory)
=> territory.Bg.RawString.Contains("/hou/");
=> territory?.Bg.RawString.Contains("/hou/") ?? false;

public static string GetDutyName(TerritoryType territory)
{
Expand Down Expand Up @@ -95,7 +95,7 @@ static void ClientState_TerritoryChanged(object sender, ushort e)
{
_canSaying = true;
}
InPvp = territory.IsPvpZone;
InPvp = territory?.IsPvpZone ?? false;
InHouse = IsHouseArea(territory);
//if (PainterManager._painter != null) PainterManager._painter.Enable = !InHouse;
DataCenter.TerritoryContentType = (TerritoryContentType)(territory?.ContentFinderCondition?.Value?.ContentType?.Value?.RowId ?? 0);
Expand Down

0 comments on commit bff9361

Please sign in to comment.