Skip to content

Commit

Permalink
Fix EyeFrameToShow regression from #4135
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack authored and Solxanich committed May 4, 2024
1 parent 8a21cc7 commit f4c325f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions patches/tModLoader/Terraria/GameContent/PlayerEyeHelper.cs.patch
Expand Up @@ -51,13 +51,13 @@
IsPoisoned
}

@@ -25,7 +_,20 @@
@@ -25,8 +_,22 @@
private int _timeInState;
private const int TimeToActDamaged = 20;

- public int EyeFrameToShow { get; private set; }
+ internal int EyeFrameToShow { get; private set; } // TML: Made internal
+
+ [System.Obsolete("Use CurrentEyeFrame instead")]
public int EyeFrameToShow { get; private set; }
+ public EyeState CurrentEyeState { // TML
+ get => _state;
+ set => _state = value;
Expand All @@ -70,9 +70,10 @@
+ get => _timeInState;
+ set => _timeInState = value;
+ }
+
public void Update(Player player)
{
SetStateByPlayerInfo(player);
@@ -109,7 +_,7 @@
}
}
Expand Down

0 comments on commit f4c325f

Please sign in to comment.