mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-29 19:01:22 +01:00
Set last damage cause for NoFall.dealDamage.
This commit is contained in:
parent
00cf2886cd
commit
f3a5e572b3
@ -67,6 +67,8 @@ public class NoFall extends Check {
|
||||
final EntityDamageEvent event = new EntityDamageEvent(player, DamageCause.FALL, damage);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
if (!event.isCancelled()){
|
||||
// TODO: account for no damage ticks etc.
|
||||
player.setLastDamageCause(event);
|
||||
mcAccess.dealFallDamage(player, event.getDamage());
|
||||
}
|
||||
// TODO: let this be done by the damage event (!).
|
||||
|
Loading…
Reference in New Issue
Block a user