[SPIGOT-1787] Launching a projectile hits its shooter when shooting living entities at close range Created: 06/Mar/16  Updated: 03/Jan/17  Resolved: 03/Jan/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: acbat Assignee: Unassigned
Resolution: Fixed Votes: 6
Labels: 1.9, Craftbukkit, spigot

Issue Links:
Duplicate
is duplicated by SPIGOT-2746 Throwing Eggs/Snowballs Causes Throwe... Resolved

 Description   

You can reproduce this without the assistance of plugins:

  1. Throw snowballs at a living entity (e.g. Pig) from afar (>3 blocks away). The living entity will get hit by the snowballs without any problems.
  2. Gradually walk closer to the entity.
  3. At close range, the snowballs begin to hit the player who is throwing them, not the living entity!

Note: this was not a problem prior to 1.9. I believe the "setShooter" function of projectiles used to have a grace period that prevents the projectile from hitting the shooter when it is first launched.

This bug reduces the effectiveness of all plugins that rely on projectile-based combat.



 Comments   
Comment by switchbranch [ 05/May/16 ]

Doesn't seem like anyone wants to fix this at any vector. :/

Comment by Matthew Steglinski [ 15/Mar/16 ]

Appears to be a vanilla issue: https://bugs.mojang.com/browse/MC-88491

Comment by Jeff [ 15/Mar/16 ]

This really breaks a lot of gun plugins. Crackshot no longer works because of this

Comment by conflictxinside [ 12/Mar/16 ]

Yeah, we have now referred to it as the "Kill Yourself Bug". Fire at a player or mob and face the consequences :-D

Comment by panda [ 12/Mar/16 ]

I have a gun survival servers and this makes player kill themselves when they shoot near a mob. I hope this gets fixed soon. Thank you

Comment by conflictxinside [ 09/Mar/16 ]

This unfortunately breaks half of the minigames on my server.

Comment by Galactic Warrior [ 06/Mar/16 ]

This is a serious problem for plugins like CrackShot, where shooting with a high damage weapon can instantly kill you if you're too close.

Generated at Sat Dec 13 20:51:11 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.