Hide GPR window in Diadem
authorLiza Carvelli <liza@carvel.li>
Wed, 9 Jul 2025 14:05:17 +0000 (16:05 +0200)
committerLiza Carvelli <liza@carvel.li>
Wed, 9 Jul 2025 14:05:17 +0000 (16:05 +0200)
GatheringPathRenderer/Windows/EditorWindow.cs

index 08925f1..913b26c 100644 (file)
@@ -124,7 +124,8 @@ internal sealed class EditorWindow : Window
 
     public override bool DrawConditions()
     {
-        return _target != null || _targetLocation != null;
+        return !(_clientState.TerritoryType is 0 or 939) &&
+            (_target != null || _targetLocation != null);
     }
 
     public override void Draw()