diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs index 4ab69b391..74c456c57 100644 --- a/Dalamud/Game/ClientState/ClientState.cs +++ b/Dalamud/Game/ClientState/ClientState.cs @@ -105,7 +105,7 @@ private unsafe ClientState(TargetSigScanner sigScanner, Dalamud dalamud, GameLif public ClientLanguage ClientLanguage { get; } /// - public ushort TerritoryType { get; private set; } + public ushort TerritoryType => this.GetCurrentTerritoryTypeId(); /// public unsafe uint MapId @@ -185,7 +185,6 @@ private unsafe void SetupTerritoryTypeDetour(EventFramework* eventFramework, ush { Log.Debug("TerritoryType changed: {0}", territoryType); - this.TerritoryType = territoryType; this.TerritoryChanged?.InvokeSafely(territoryType); var rowRef = LuminaUtils.CreateRef(territoryType); @@ -326,6 +325,11 @@ private void NetworkHandlersOnCfPop(ContentFinderCondition e) { this.CfPop?.InvokeSafely(e); } + + private unsafe ushort GetCurrentTerritoryTypeId() + { + return (ushort)GameMain.Instance()->CurrentTerritoryTypeId; + } } ///