mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-25 18:07:57 +01:00
Ineffective workaround.
This commit is contained in:
parent
9accfc3831
commit
71ffa298f5
@ -942,12 +942,12 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
final MediumLiftOff oldMLO = data.mediumLiftOff; // Remember for workarounds.
|
final MediumLiftOff oldMLO = data.mediumLiftOff; // Remember for workarounds.
|
||||||
data.clearMorePacketsData();
|
data.clearMorePacketsData();
|
||||||
data.clearFlyData();
|
data.clearFlyData();
|
||||||
|
data.resetPositions(to);
|
||||||
if (TrigUtil.maxDistance(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ()) <= 12.0) {
|
if (TrigUtil.maxDistance(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ()) <= 12.0) {
|
||||||
// TODO: Might happen with bigger distances (mainly ender pearl thrown at others).
|
// TODO: Might happen with bigger distances (mainly ender pearl thrown at others).
|
||||||
// Keep old MediumLiftOff.
|
// Keep old MediumLiftOff.
|
||||||
data.mediumLiftOff = oldMLO;
|
data.mediumLiftOff = oldMLO;
|
||||||
}
|
}
|
||||||
data.resetPositions(to);
|
|
||||||
data.setSetBack(to);
|
data.setSetBack(to);
|
||||||
// TODO: How to account for plugins that reset the fall distance here?
|
// TODO: How to account for plugins that reset the fall distance here?
|
||||||
if (fallDistance > 1.0 && fallDistance - player.getFallDistance() > 0.0){
|
if (fallDistance > 1.0 && fallDistance - player.getFallDistance() > 0.0){
|
||||||
|
Loading…
Reference in New Issue
Block a user