mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Use slightly bigger bounding box for stairs.
This commit is contained in:
parent
0447eed6ef
commit
0a472661c4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user