Added ai[0] check

This commit is contained in:
AkjaHAsLk1IALk0MasH 2021-11-30 14:22:41 +07:00
parent 6cec7e71cd
commit 1a62d1dfed

View file

@ -1096,7 +1096,7 @@ namespace TShockAPI
return;
}
if (TShock.Config.Settings.DisableAnyZenith && type == ProjectileID.FinalFractal && !Terraria.Graphics.FinalFractalHelper._fractalProfiles.ContainsKey((int)ai[1]))
if (TShock.Config.Settings.DisableAnyZenith && type == ProjectileID.FinalFractal && (ai[0] < -100 || ai[0] > 101 ) && !Terraria.Graphics.FinalFractalHelper._fractalProfiles.ContainsKey((int)ai[1]))
{
TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from bouncer modified Zenith projectile from {0}.", args.Player.Name);
args.Player.RemoveProjectile(ident, owner);