mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-13 19:52:08 +01:00
Fix DamageSource API
This commit is contained in:
parent
1725de0232
commit
e18f6c6b55
@ -60,6 +60,20 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent {
|
||||
}
|
||||
// Paper end
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* <p>
|
||||
* 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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user