Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sinai-dev committed Apr 25, 2022
1 parent e6da083 commit 3bc18d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/Input/EventSystemHelper.cs
Expand Up @@ -121,6 +121,7 @@ internal static void EnableEventSystem()
&& Time.realtimeSinceStartup - timeOfLastEventSystemSearch > 10f)
{
FallbackEventSystemSearch();
lastEventSystem.enabled = false;
}

if (!UniversalUI.EventSys.enabled)
Expand Down Expand Up @@ -151,7 +152,7 @@ static void FallbackEventSystemSearch()
{
lastEventSystem = system;
lastInputModule = system.currentInputModule;
lastEventSystem.enabled = false;
//lastEventSystem.enabled = false;
break;
}
}
Expand All @@ -172,14 +173,15 @@ internal static void ReleaseEventSystem()
CheckVRChatEventSystemFix();

if (!lastEventSystem
&& !ConfigManager.Disable_Fallback_EventSystem_Search)
&& !ConfigManager.Disable_Fallback_EventSystem_Search
&& Time.realtimeSinceStartup - timeOfLastEventSystemSearch > 10f)
{
FallbackEventSystemSearch();
}

if (!lastEventSystem)
{
Universe.LogWarning($"No previous EventSystem found to set back to!");
//Universe.LogWarning($"No previous EventSystem found to set back to!");
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Universe.cs
Expand Up @@ -21,12 +21,12 @@ public enum GlobalState
}

public const string NAME = "UniverseLib";
public const string VERSION = "1.3.11";
public const string VERSION = "1.3.12";
public const string AUTHOR = "Sinai";
public const string GUID = "com.sinai.universelib";

/// <summary>The current runtime context (Mono or IL2CPP).</summary>
public static RuntimeContext Context { get; internal set; } =
public static RuntimeContext Context { get; } =
#if MONO
RuntimeContext.Mono;
#else
Expand Down

0 comments on commit 3bc18d3

Please sign in to comment.