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

[Bleeding] Handle EntityHuman attack a bit more properly.

Dieser Commit ist enthalten in:
Feildmaster 2012-02-08 23:23:47 -06:00 committet von EvilSeph
Ursprung 8ecfca47de
Commit fa6fd24f2a

Datei anzeigen

@ -778,7 +778,7 @@ public abstract class EntityHuman extends EntityLiving {
}
// CraftBukkit start - Don't call the event when the entity is human since it will be called with damageEntity
if (entity instanceof EntityLiving && !(entity instanceof EntityHuman)) {
if ((entity instanceof EntityLiving || entity instanceof EntityComplexPart) && !(entity instanceof EntityHuman)) {
org.bukkit.entity.Entity damager = this.getBukkitEntity();
org.bukkit.entity.Entity damagee = (entity == null) ? null : entity.getBukkitEntity();