Skip to content

Commit

Permalink
Fix highlight offset X not working
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathWeasel1337 committed Apr 18, 2022
1 parent 9a90bf0 commit 0bc9b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/EyeShaking.Core/EyeShaking.Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ private static bool EyeLookMaterialControll_Update(EyeLookMaterialControll __ins
switch (i)
{
case 1:
vector3 = new Vector2(vector3.x, vector3.y + __instance.hlUpOffsetY);
vector3 = new Vector2(vector3.x + __instance.hlUpOffsetX, vector3.y + __instance.hlUpOffsetY);
break;
case 2:
vector3 = new Vector2(vector3.x, vector3.y + __instance.hlDownOffsetY);
vector3 = new Vector2(vector3.x + __instance.hlDownOffsetX, vector3.y + __instance.hlDownOffsetY);
break;
}
Vector2 value = vector3;
Expand All @@ -110,8 +110,8 @@ private static bool EyeLookMaterialControll_Update(EyeLookMaterialControll __ins
value += a * -0.5f;
if (flag)
{
__instance.YureAddScale.x = UnityEngine.Random.Range(1f, 2f);
__instance.YureAddScale.y = UnityEngine.Random.Range(1f, 1.5f);
__instance.YureAddScale.x = Random.Range(1f, 2f);
__instance.YureAddScale.y = Random.Range(1f, 1.5f);
}
value += __instance.YureAddVec;
__instance.YureTimer += Time.deltaTime;
Expand Down
2 changes: 1 addition & 1 deletion src/EyeShaking.Core/EyeShaking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class EyeShaking : BaseUnityPlugin
public const string GUID = "com.deathweasel.bepinex.eyeshaking";
public const string PluginName = "Eye Shaking";
public const string PluginNameInternal = Constants.Prefix + "_EyeShaking";
public const string Version = "1.3";
public const string Version = "1.3.1";
internal static new ManualLogSource Logger;

public static ConfigEntry<bool> Enabled { get; private set; }
Expand Down

0 comments on commit 0bc9b1d

Please sign in to comment.