From 539d8194b41d01e406a0348326b5542cb490b119 Mon Sep 17 00:00:00 2001 From: ACaiCat <13110818005@qq.com> Date: Tue, 22 Jul 2025 14:26:14 +0800 Subject: [PATCH] fix(Bouncer): remove portal bolt position validation --- TShockAPI/Bouncer.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 1f8dac7e..c48494e5 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -1323,7 +1323,6 @@ namespace TShockAPI // Portal Gun Gate projectiles must meet several validation criteria: // 1. The angle must be within valid discrete directions (45 degree increments) // 2. Must have an active PortalGunBolt projectile associated - // 3. The bolt position must match the expected position if (type == ProjectileID.PortalGunGate) { // Validate the gate angle is one of 8 possible cardinal directions (every 45 degrees) @@ -1347,15 +1346,7 @@ namespace TShockAPI return; } - // Validate the bolt position matches where the gate is being placed - var boltProjectile = Main.projectile[boltProjectileData.Index]; - if (boltProjectile.position.Equals(args.Position)) - { - TShock.Log.ConsoleDebug(GetString("Bouncer / OnNewProjectile rejected from portal gate from {0} (position mismatch)", args.Player.Name)); - args.Player.RemoveProjectile(ident, owner); - args.Handled = true; - return; - } + boltProjectileData.Killed = true; } if (!TShock.Config.Settings.IgnoreProjUpdate && !args.Player.HasPermission(Permissions.ignoreprojectiledetection))