fix patch, change splash text

This commit is contained in:
Mister_Nebula 2020-11-06 22:05:43 +00:00
parent 8b68f8d85a
commit 81a8c03921
3 changed files with 9 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace QSB.Patches
public static void DoPatchType(QSBPatchTypes type) public static void DoPatchType(QSBPatchTypes type)
{ {
OnPatchType(type); OnPatchType?.Invoke(type);
DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info); DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
foreach (var patch in _patchList.Where(x => x.Type == type)) foreach (var patch in _patchList.Where(x => x.Type == type))
{ {

View File

@ -1,5 +1,6 @@
using OWML.Common; using OWML.Common;
using OWML.ModHelper; using OWML.ModHelper;
using OWML.ModHelper.Events;
using QSB.ConversationSync; using QSB.ConversationSync;
using QSB.ElevatorSync; using QSB.ElevatorSync;
using QSB.GeyserSync; using QSB.GeyserSync;
@ -25,6 +26,9 @@ namespace QSB
private void Awake() private void Awake()
{ {
Application.runInBackground = true; Application.runInBackground = true;
var instance = TextTranslation.Get().GetValue<TextTranslation.TranslationTable>("m_table");
instance.theUITable[(int)UITextType.PleaseUseController] = "<color=orange>Outer Wilds</color> is best experienced with fellow travellers...";
} }
private void Start() private void Start()

View File

@ -26,6 +26,10 @@ namespace QSB.SectorSync
public void RebuildSectors() public void RebuildSectors()
{ {
if (!QSBSceneManager.IsInUniverse)
{
return;
}
DebugLog.DebugWrite("Rebuilding sectors...", MessageType.Warning); DebugLog.DebugWrite("Rebuilding sectors...", MessageType.Warning);
WorldRegistry.RemoveObjects<QSBSector>(); WorldRegistry.RemoveObjects<QSBSector>();
var sectors = Resources.FindObjectsOfTypeAll<Sector>().ToList(); var sectors = Resources.FindObjectsOfTypeAll<Sector>().ToList();