Assume some factor for fall hight for fluids (EXPERIMENTAL).

This commit is contained in:
asofold 2012-08-12 09:23:19 +02:00
parent 2e3982e2d4
commit aae268baaf

View File

@ -66,9 +66,10 @@ public class NoFall extends Check {
// TODO: check if it is deep liquid // TODO: check if it is deep liquid
final double dist = data.noFallY - to.getY(); final double dist = data.noFallY - to.getY();
if (dist > 0 ){ if (dist > 0 ){
// TODO: ? different concept, at least distinguish water, lava, flowing. // TODO: ? different model, at least distinguish water, lava, flowing.
data.noFallY = to.getY() + dist * 0.7; final double fFLuid = 0.55;
data.noFallFallDistance *= 0.7; data.noFallY = to.getY() + dist *fFLuid;
data.noFallFallDistance *= fFLuid;
} }
} }
else if (to.isInWeb() || to.isOnLadder()){ else if (to.isInWeb() || to.isOnLadder()){