glorious end wall clip prevention

This commit is contained in:
Altixal committed 2024-06-29 19:18:20 +07:00
1 parent dc410c213f
commit 0dfe38cfa1
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Magic
}
// Die immediately if the owner of this projectile is clipping into tiles because of its movement.
if (Collision.SolidCollision(Owner.position, Owner.width, Owner.height) && Projectile.velocity != Vector2.Zero)
if (Collision.SolidCollision(Owner.position + Projectile.velocity, Owner.width, Owner.height) && Projectile.velocity != Vector2.Zero)
{
Owner.velocity.Y = 0f;
Explode();