Fix for falling under slabs that are placed on the bottom half of a block with air underneath.

This commit is contained in:
H31IX committed 2012-08-06 00:43:09 -04:00
1 parent e79b8e4548
commit 3a226aa9e3
1 file changed
+1 -1
@@ -641,7 +641,7 @@ public class Backend
String name = player.getName();
int y1 = (int)distance.fromY();
int y2 = (int)distance.toY();
if((y1 == y2 || y1 < y2) && !Utilities.isInWater(player) && Utilities.cantStandAt(player.getLocation().add(0, -1, 0).getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -2, 0).getBlock()))
if((y1 == y2 || y1 < y2) && !Utilities.isInWater(player) && !Utilities.canStand(player.getLocation().getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -1, 0).getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -2, 0).getBlock()))
{
int violation = flightViolation.containsKey(name) ? flightViolation.get(name) + 1 : 1;
increment(player, flightViolation, violation);