mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-02 10:31:25 +01:00
[EXPERIMENTAL] Allow very small players to be very small.
This commit is contained in:
parent
f4680da0d4
commit
94ae270ead
@ -99,7 +99,7 @@ public class MCAccessCB2511 implements MCAccess {
|
||||
// This can not really test stance but height of bounding box.
|
||||
final double dY = Math.abs(box.e - box.b);
|
||||
if (dY > 1.8) return AlmostBoolean.YES; // dY > 1.65D ||
|
||||
if (dY < 0.1D) return AlmostBoolean.YES;
|
||||
if (dY < 0.1D && entityPlayer.length >= 0.1) return AlmostBoolean.YES;
|
||||
}
|
||||
return AlmostBoolean.MAYBE;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class MCAccessCB2512 implements MCAccess{
|
||||
// This can not really test stance but height of bounding box.
|
||||
final double dY = Math.abs(box.e - box.b);
|
||||
if (dY > 1.8) return AlmostBoolean.YES; // dY > 1.65D ||
|
||||
if (dY < 0.1D) return AlmostBoolean.YES;
|
||||
if (dY < 0.1D && entityPlayer.length >= 0.1) return AlmostBoolean.YES;
|
||||
}
|
||||
return AlmostBoolean.MAYBE;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class MCAccessCB2545 implements MCAccess{
|
||||
// This can not really test stance but height of bounding box.
|
||||
final double dY = Math.abs(box.e - box.b);
|
||||
if (dY > 1.8) return AlmostBoolean.YES; // dY > 1.65D ||
|
||||
if (dY < 0.1D) return AlmostBoolean.YES;
|
||||
if (dY < 0.1D && entityPlayer.length >= 0.1) return AlmostBoolean.YES;
|
||||
}
|
||||
return AlmostBoolean.MAYBE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user