diff --git a/QSB/TransformSync/SectorSync.cs b/QSB/TransformSync/SectorSync.cs index cba500fe..da781ef6 100644 --- a/QSB/TransformSync/SectorSync.cs +++ b/QSB/TransformSync/SectorSync.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using QSB.Messaging; using UnityEngine; +using System.Linq; namespace QSB.TransformSync { @@ -11,6 +12,23 @@ namespace QSB.TransformSync private Dictionary _playerSectors; private Sector[] _allSectors; private MessageHandler _sectorHandler; + private readonly Sector.Name[] sectorWhitelist = new Sector.Name[]{ + Sector.Name.BrambleDimension, + Sector.Name.BrittleHollow, + Sector.Name.Comet, + Sector.Name.DarkBramble, + Sector.Name.EyeOfTheUniverse, + Sector.Name.GiantsDeep, + Sector.Name.HourglassTwin_A, + Sector.Name.HourglassTwin_B, + Sector.Name.OrbitalProbeCannon, + Sector.Name.QuantumMoon, + Sector.Name.SunStation, + Sector.Name.TimberHearth, + Sector.Name.TimberMoon, + Sector.Name.VolcanicMoon, + Sector.Name.WhiteHole + }; private void Start() { @@ -92,7 +110,7 @@ namespace QSB.TransformSync { private static void PreAddSector(Sector sector, DynamicOccupant ____occupantType) { - if (sector.GetName() == Sector.Name.Unnamed || sector.GetName() == Sector.Name.Ship || sector.GetName() == Sector.Name.Sun || sector.GetName() == Sector.Name.HourglassTwins) + if (!Instance.sectorWhitelist.Contains(sector.GetName())) { return; }