mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01:00
Fix NoFall violations with ender-pearls.
This commit is contained in:
parent
b00bb9a014
commit
f9691c3ea8
@ -828,6 +828,10 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
player.setFallDistance((float) fallDistance);
|
player.setFallDistance((float) fallDistance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (event.getCause() == TeleportCause.ENDER_PEARL){
|
||||||
|
// Prevent NoFall violations for ender-pearls.
|
||||||
|
data.noFallSkipAirCheck = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Cancelled, not a set back, ignore it, basically.
|
// Cancelled, not a set back, ignore it, basically.
|
||||||
|
Loading…
Reference in New Issue
Block a user