mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 13:40:24 -07: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 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.
|
* Returns the entity that damaged the defender.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user