diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java index 341f99550d..31a36ed3ba 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java @@ -60,6 +60,20 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent { } // Paper end + // Paper start + /** + * {@inheritDoc} + *
+ * The {@link DamageSource#getDirectEntity()} may be different from the {@link #getDamager()} + * if the Minecraft damage source did not originally include an damager entity, but one was included + * for this event {@link #getDamager()}. + */ + @Override + public @NotNull DamageSource getDamageSource() { + return super.getDamageSource(); + } + // Paper end + /** * Returns the entity that damaged the defender. *