diff --git a/Mapify/SceneInitializers/GameContent/StationSetup.cs b/Mapify/SceneInitializers/GameContent/StationSetup.cs index 9ff7f4f..67164c9 100644 --- a/Mapify/SceneInitializers/GameContent/StationSetup.cs +++ b/Mapify/SceneInitializers/GameContent/StationSetup.cs @@ -52,13 +52,16 @@ public override void Run() private static void SetupJobBookletSpawnSurface(Station station, StationController stationController) { PointOnPlane jobBookletSpawnSurface = station.transform.parent.GetComponentInChildren(); - if (jobBookletSpawnSurface != null) - return; - GameObject jobBookletSpawnSurfaceObject = station.gameObject.NewChildWithPosition("JobSpawnerAnchor", station.transform.TransformPoint(station.bookletSpawnArea.center)); - jobBookletSpawnSurface = jobBookletSpawnSurfaceObject.AddComponent(); - Vector3 size = station.bookletSpawnArea.size; - jobBookletSpawnSurface.xSize = size.x; - jobBookletSpawnSurface.xSize = size.z; + + if (jobBookletSpawnSurface == null) + { + GameObject jobBookletSpawnSurfaceObject = station.gameObject.NewChildWithPosition("JobSpawnerAnchor", station.transform.TransformPoint(station.bookletSpawnArea.center)); + jobBookletSpawnSurface = jobBookletSpawnSurfaceObject.AddComponent(); + Vector3 size = station.bookletSpawnArea.size; + jobBookletSpawnSurface.xSize = size.x; + jobBookletSpawnSurface.zSize = size.z; + } + StationController_Field_jobBookletSpawnSurface.SetValue(stationController, jobBookletSpawnSurface); }