mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Collect block flags after checking isIllegal (!).
This commit is contained in:
parent
68fbbcee1e
commit
2c73a8adb8
@ -344,8 +344,6 @@ public class MovingListener extends CheckListener{
|
|||||||
|
|
||||||
final MovingConfig cc = MovingConfig.getConfig(player);
|
final MovingConfig cc = MovingConfig.getConfig(player);
|
||||||
moveInfo.set(player, from, to, cc.yOnGround);
|
moveInfo.set(player, from, to, cc.yOnGround);
|
||||||
pFrom.collectBlockFlags(cc.noFallyOnGround);
|
|
||||||
pTo.collectBlockFlags(cc.noFallyOnGround);
|
|
||||||
final MovingData data = MovingData.getData(player);
|
final MovingData data = MovingData.getData(player);
|
||||||
data.noFallAssumeGround = false;
|
data.noFallAssumeGround = false;
|
||||||
data.teleported = null;
|
data.teleported = null;
|
||||||
@ -357,6 +355,8 @@ public class MovingListener extends CheckListener{
|
|||||||
parkedInfo.add(moveInfo);
|
parkedInfo.add(moveInfo);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
pFrom.collectBlockFlags(cc.noFallyOnGround);
|
||||||
|
pTo.collectBlockFlags(cc.noFallyOnGround);
|
||||||
|
|
||||||
final EntityPlayer mcPlayer = pFrom.getEntityPlayer();
|
final EntityPlayer mcPlayer = pFrom.getEntityPlayer();
|
||||||
// Potion effect "Jump".
|
// Potion effect "Jump".
|
||||||
|
Loading…
Reference in New Issue
Block a user