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:
Ursprung
27e75c358d
Commit
8de2b52a02
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren