From 73ea4ad5bba0fedb2e1882f9a85216d1a01c1ce6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 18:57:09 +0100 Subject: [PATCH] Remove Unity zone cache from galaxy model --- Aetheria.State.Verify/Program.cs | 6 ++++++ Assets/Scripts/ServerShared/Galaxy.cs | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 341a67806..d3d251b2a 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -8144,6 +8144,12 @@ static void RequireUnityObserverDoesNotTickLocalSimulation(string root) "Unity gameplay must not cache observed runtime zone context on the projected GalaxyZone model."); } + if (galaxy.Contains("public Zone Contents", StringComparison.Ordinal)) + { + throw new InvalidOperationException( + "Projected GalaxyZone must not own Unity runtime Zone contents; observed zone context belongs to the client lowerer."); + } + var contextPrepRendererLoads = FindMethodScopedLineHits( actionGameManager, new[] { "LoadDaemonZoneView(", "BindToEntity(" }) diff --git a/Assets/Scripts/ServerShared/Galaxy.cs b/Assets/Scripts/ServerShared/Galaxy.cs index 35acb18c4..a0f88f7f2 100644 --- a/Assets/Scripts/ServerShared/Galaxy.cs +++ b/Assets/Scripts/ServerShared/Galaxy.cs @@ -743,7 +743,6 @@ public class GalaxyZone public Dictionary Distance; public Faction[] Factions; public Faction Owner; - public Zone Contents; public bool NamedZone; public List Locations = new List(); }