Collect block flags after checking isIllegal (!).

This commit is contained in:
asofold 2012-12-01 21:40:53 +01:00
parent 68fbbcee1e
commit 2c73a8adb8

View File

@ -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".