13
0
geforkt von Mirrors/Paper

Fix DamageSource API

Dieser Commit ist enthalten in:
Jake Potrebic 2024-03-16 11:21:14 -07:00
Ursprung 1725de0232
Commit e18f6c6b55

Datei anzeigen

@ -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.
*