geforkt von Mirrors/Paper
Fix DamageSource API
Dieser Commit ist enthalten in:
Ursprung
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.
|
||||||
*
|
*
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren