Give the on-ground judgment less high bounds.

This commit is contained in:
asofold 2012-10-10 01:28:11 +02:00
parent 2e322198db
commit e721b4e759

View File

@ -244,7 +244,7 @@ public class PlayerLocation {
*/
public boolean isOnGround() {
if (onGround == null) {
onGround = BlockProperties.isOnGround(getBlockAccess(), boundingBox.a, boundingBox.b - yOnGround, boundingBox.c, boundingBox.d, boundingBox.e, boundingBox.f);
onGround = BlockProperties.isOnGround(getBlockAccess(), boundingBox.a, boundingBox.b - yOnGround, boundingBox.c, boundingBox.d, boundingBox.b + 0.25, boundingBox.f);
if (!onGround){
// TODO: Probably check other ids too before doing this ?
// TODO: clean this up, use other checking method, detach it to blockproperties ?