remove "wake up" prompt

This commit is contained in:
Mister_Nebula 2021-06-12 15:58:34 +01:00
parent 3eb3d8d3d9
commit d714045a8a
4 changed files with 22 additions and 2 deletions

View File

@ -17,6 +17,7 @@ using QSB.QuantumSync.Patches;
using QSB.RoastingSync.Patches;
using QSB.ShipSync.Patches;
using QSB.StatueSync.Patches;
using QSB.TimeSync.Patches;
using QSB.TranslationSync.Patches;
using QSB.Utility;
using System;
@ -57,7 +58,8 @@ namespace QSB.Patches
new PlayerAnimationPatches(),
new CharacterAnimationPatches(),
new ShipPatches(),
new InputPatches()
new InputPatches(),
new TimePatches()
};
DebugLog.DebugWrite("Patch Manager ready.", MessageType.Success);

View File

@ -244,6 +244,7 @@
<Compile Include="Syncs\ISync.cs" />
<Compile Include="Syncs\RigidbodySync\UnparentedBaseRigidbodySync.cs" />
<Compile Include="Syncs\RigidbodySync\SectoredRigidbodySync.cs" />
<Compile Include="TimeSync\Patches\TimePatches.cs" />
<Compile Include="Utility\CustomRelativisticParticleSystem.cs" />
<Compile Include="RoastingSync\QSBMarshmallow.cs" />
<Compile Include="RoastingSync\Events\EnterExitRoastingEvent.cs" />

View File

@ -0,0 +1,18 @@
using QSB.Patches;
namespace QSB.TimeSync.Patches
{
class TimePatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
public override void DoPatches()
=> QSBCore.HarmonyHelper.AddPrefix<PlayerCameraEffectController>("OnStartOfTimeLoop", typeof(TimePatches), nameof(PlayerCameraEffectController_OnStartOfTimeLoop));
public override void DoUnpatches()
=> QSBCore.HarmonyHelper.Unpatch<PlayerCameraEffectController>("OnStartOfTimeLoop");
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
=> false;
}
}

View File

@ -74,7 +74,6 @@ namespace QSB.TimeSync
private void OnSceneLoaded(OWScene scene, bool isInUniverse)
{
DebugLog.DebugWrite($"ONSCENELOADED");
_hasWokenUp = false;
if (isInUniverse)
{