Skip to content

Commit

Permalink
Grenade Hint Error Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Dec 27, 2024
1 parent 1b849c1 commit 58023f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UsefulHints/EventHandlers/Items/Hints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static void OnGrenadeHurting(HurtingEventArgs ev)
if (ev.DamageHandler.Type == DamageType.Explosion)
{
float RemainingHealth = ev.Player.Health - ev.Amount;
if (RemainingHealth > 0)
if (RemainingHealth > 0 && !ev.Attacker.IsHost)
{
ev.Attacker.ShowHint($"<color=white>{new string('\n', 5)}{string.Format(UsefulHints.Instance.Config.GrenadeDamageHint, Math.Round(ev.Amount))}</color>", 4);
}
Expand Down
2 changes: 1 addition & 1 deletion UsefulHints/UsefulHints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class UsefulHints : Plugin<Config>
public override string Name => "Useful Hints";
public override string Author => "Vretu";
public override string Prefix { get; } = "UH";
public override Version Version => new Version(1, 9, 2);
public override Version Version => new Version(1, 9, 3);
public override Version RequiredExiledVersion { get; } = new Version(9, 0, 0);
public override PluginPriority Priority { get; } = PluginPriority.Low;
public static UsefulHints Instance { get; private set; }
Expand Down

0 comments on commit 58023f2

Please sign in to comment.