diff --git a/plugin/src/input/InputPatches.cs b/plugin/src/input/InputPatches.cs index 7bedb51..bf3d178 100644 --- a/plugin/src/input/InputPatches.cs +++ b/plugin/src/input/InputPatches.cs @@ -90,7 +90,7 @@ private static bool handleAxisInput(ref Vector2 __result, int xAxisActionId, int [HarmonyPatch(typeof(PlayerFirstPersonController), nameof(PlayerFirstPersonController.Move))] static void Move(PlayerFirstPersonController __instance) { - if (!__instance.m_IsGrounded || InputHandler.instance.playerInputBlocked || InputHandler.instance.playerInputBlockedOverride && VRCameraManager.mainCamera != null) + if ((!__instance.m_IsGrounded && !__instance.hoverPackActive) || InputHandler.instance.playerInputBlocked || InputHandler.instance.playerInputBlockedOverride && VRCameraManager.mainCamera != null) { return; } diff --git a/plugin/src/util/Logger.cs b/plugin/src/util/Logger.cs index fc5e6f5..9a50527 100644 --- a/plugin/src/util/Logger.cs +++ b/plugin/src/util/Logger.cs @@ -1,4 +1,5 @@ using System; +using UnityEngine; namespace TechtonicaVR.Util; @@ -22,22 +23,22 @@ public static PluginLogger GetLogger() public void LogInfo(string message) { - TechtonicaVR.Logger.LogInfo($"[{prefix}] {message}"); + TechtonicaVR.Logger.LogInfo($"[{prefix}] ({Time.frameCount}) {message}"); } public void LogDebug(string message) { - TechtonicaVR.Logger.LogDebug($"[{prefix}] {message}"); + TechtonicaVR.Logger.LogDebug($"[{prefix}] ({Time.frameCount}) {message}"); } public void LogWarning(string message) { - TechtonicaVR.Logger.LogWarning($"[{prefix}] {message}"); + TechtonicaVR.Logger.LogWarning($"[{prefix}] ({Time.frameCount}) {message}"); } public void LogError(string message) { - TechtonicaVR.Logger.LogError($"[{prefix}] {message}"); + TechtonicaVR.Logger.LogError($"[{prefix}] ({Time.frameCount}) {message}"); } internal void LogTrace(string v) @@ -46,6 +47,6 @@ internal void LogTrace(string v) { return; } - TechtonicaVR.Logger.LogDebug($"[{prefix}] {v}"); + TechtonicaVR.Logger.LogDebug($"[{prefix}] ({Time.frameCount}) {v}"); } }