[EXPERIMENTAL] Allow very small players to be very small.

This commit is contained in:
asofold 2012-12-29 22:43:21 +01:00
parent f4680da0d4
commit 94ae270ead
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}