mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-08 00:38:27 +01:00
Assume some factor for fall hight for fluids (EXPERIMENTAL).
This commit is contained in:
parent
2e3982e2d4
commit
aae268baaf
@ -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()){
|
||||||
|
Loading…
Reference in New Issue
Block a user