mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-27 18:01:33 +01:00
Skip pvp knockback stuff, if the DAMAGED player is inside of a vehicle.
This commit is contained in:
parent
6159f796da
commit
539e58dd01
@ -515,7 +515,7 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
||||
case ENTITY_ATTACK:
|
||||
if (event instanceof EntityDamageByEntityEvent) {
|
||||
final Entity entity = ((EntityDamageByEntityEvent) event).getDamager();
|
||||
if ((entity instanceof Player) && !entity.isInsideVehicle() && FightConfig.getConfig(damagedPlayer).knockBackVelocityPvP) {
|
||||
if ((entity instanceof Player) && !damagedPlayer.isInsideVehicle() && FightConfig.getConfig(damagedPlayer).knockBackVelocityPvP) {
|
||||
applyKnockBack((Player) entity, damagedPlayer, damagedData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user