mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
Merge branch 'dev' into nebula/event-overhaul
This commit is contained in:
commit
8789ad1a56
@ -44,9 +44,16 @@ namespace QSB.TransformSync
|
||||
|
||||
public Sector FindSectorByName(Sector.Name sectorName, string goName)
|
||||
{
|
||||
var scene = LoadManager.GetCurrentScene();
|
||||
if (scene != OWScene.SolarSystem && scene != OWScene.EyeOfTheUniverse)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_allSectors.Count == 0)
|
||||
{
|
||||
DebugLog.ToConsole("Error: _allSectors is empty!", OWML.Common.MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
return _allSectors
|
||||
|
Loading…
x
Reference in New Issue
Block a user