diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 1679de62..28783ab2 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -1083,12 +1083,17 @@ namespace TShockAPI return; } + /*if ( + (Projectile_MaxValuesAI.ContainsKey(type) && + (Projectile_MinValuesAI[type] > ai[0] || ai[0] < Projectile_MaxValuesAI[type])) || + (Projectile_MaxValuesAI2.ContainsKey(type) && + (Projectile_MinValuesAI2[type] > ai[1] || Projectile_MaxValuesAI2[type] < ai[1])) + )*/ if ( (Projectile_MaxValuesAI.ContainsKey(type) && - (ai[0] > Projectile_MaxValuesAI[type] || ai[0] < Projectile_MinValuesAI[type])) || - + (Projectile_MaxValuesAI[type] < ai[0] || Projectile_MinValuesAI[type] > ai[0])) || (Projectile_MaxValuesAI2.ContainsKey(type) && - (ai[1] > Projectile_MaxValuesAI2[type] || ai[1] < Projectile_MinValuesAI2[type])) + (Projectile_MaxValuesAI2[type] < ai[1] || Projectile_MinValuesAI2[type] > ai[1])) ) { TShock.Log.ConsoleDebug("Bouncer / OnNewProjectile rejected from bouncer modified AI from {0}.", args.Player.Name); @@ -1097,6 +1102,8 @@ namespace TShockAPI return; } + + if (!args.Player.HasPermission(Permissions.ignoreprojectiledetection)) { if (type == ProjectileID.CrystalShard && TShock.Config.Settings.ProjIgnoreShrapnel) // Ignore crystal shards @@ -2524,8 +2531,8 @@ namespace TShockAPI }; private Dictionary Projectile_MinValuesAI2 = new Dictionary { - { 405, 0.8f }, - { 410, 0.6f }, + { 405, 0f }, + { 410, 0f }, { 424, 0.5f }, { 425, 0.5f },