Let NoFall be more generous with the on-ground search.

Extend xz and y margins.
This commit is contained in:
asofold 2013-03-12 08:19:19 +01:00
parent 7b4fe7acc4
commit a7c4539783

View File

@ -1096,7 +1096,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
moveInfo.from.collectBlockFlags(cc.noFallyOnGround); moveInfo.from.collectBlockFlags(cc.noFallyOnGround);
// Be sure not to lose that block. // Be sure not to lose that block.
data.noFallFallDistance += 1.0; data.noFallFallDistance += 1.0;
if (!pLoc.isOnGround(1.0) && !pLoc.isResetCond() && !pLoc.isAboveLadder() && !pLoc.isAboveStairs()){ if (!pLoc.isOnGround(1.0, 0.3, 0.1) && !pLoc.isResetCond() && !pLoc.isAboveLadder() && !pLoc.isAboveStairs()){
// Likely a new style no-fall bypass (damage in mid-air). // Likely a new style no-fall bypass (damage in mid-air).
data.noFallVL += 1.0; data.noFallVL += 1.0;
if (noFall.executeActions(player, data.noFallVL, 1.0, cc.noFallActions, true) && data.hasSetBack()){ if (noFall.executeActions(player, data.noFallVL, 1.0, cc.noFallActions, true) && data.hasSetBack()){