Added ai[0] check
This commit is contained in:
parent
6cec7e71cd
commit
1a62d1dfed
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue