3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 21:10:10 +01:00

Removed double firing of EntityDamage events by arrows. Thanks sunkid!

Dieser Commit ist enthalten in:
EvilSeph 2011-05-16 00:04:40 -04:00
Ursprung 27e75c358d
Commit 8de2b52a02

Datei anzeigen

@ -395,10 +395,6 @@ public abstract class EntityHuman extends EntityLiving {
} else {
Object object = entity;
if (entity instanceof EntityArrow && ((EntityArrow) entity).shooter != null) {
object = ((EntityArrow) entity).shooter;
}
// CraftBukkit start - this is here instead of EntityMonster because EntityLiving(s) that aren't monsters
// also damage the player in this way. For example, EntitySlime.
if (object instanceof EntityLiving) {