geforkt von Mirrors/Paper
SPIGOT-7383: Add EntityDamageEvent.DamageCause#KILL and EntityDamageEvent.DamageCause#WORLD_BORDER
By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
Ursprung
4c192dd4e7
Commit
1e66cd27c3
@ -1027,6 +1027,10 @@ public class CraftEventFactory {
|
||||
cause = DamageCause.DRYOUT;
|
||||
} else if (source.is(DamageTypes.FREEZE)) {
|
||||
cause = DamageCause.FREEZE;
|
||||
} else if (source.is(DamageTypes.GENERIC_KILL)) {
|
||||
cause = DamageCause.KILL;
|
||||
} else if (source.is(DamageTypes.OUTSIDE_BORDER)) {
|
||||
cause = DamageCause.WORLD_BORDER;
|
||||
} else {
|
||||
cause = DamageCause.CUSTOM;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren