Use slightly bigger bounding box for stairs.

This commit is contained in:
asofold 2012-11-01 02:54:03 +01:00
parent 0447eed6ef
commit 0a472661c4

View File

@ -211,7 +211,7 @@ public class PlayerLocation {
if (aboveStairs == null){
// aboveStairs = BlockProperties.isStairs(getTypeIdBelow().intValue());
// TODO: maybe distinguish upside down stairs and normal stairs !
final double diff = getWidth();
final double diff = getWidth() + 0.001;
aboveStairs = BlockProperties.collides(getBlockAccess(), x - diff, y + 0.25, z - diff, x + diff, y - 1.0, z + diff, BlockProperties.F_STAIRS);
}
return aboveStairs;