Fixed issues with columns up/down in mid-air while jumping

This commit is contained in:
h31ix committed 2012-09-30 14:35:48 -04:00
1 parent 8405f4a15e
commit 08a6d29c9e
1 file changed
+2 -2
@@ -215,7 +215,7 @@ public class Backend
public boolean checkNoFall(Player player, double y) public boolean checkNoFall(Player player, double y)
{ {
String name = player.getName(); String name = player.getName();
if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player) && !Utilities.isInWater(player)) if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player))
{ {
if (player.getFallDistance() == 0) if (player.getFallDistance() == 0)
{ {
@@ -635,7 +635,7 @@ public class Backend
max += 12; max += 12;
} }
Block block = player.getLocation().getBlock(); Block block = player.getLocation().getBlock();
if (!isMovingExempt(player) && !Utilities.isInWater(player) && !Utilities.isClimbableBlock(player.getLocation().getBlock()) && !player.isInsideVehicle()) if (!isMovingExempt(player) && !Utilities.isInWater(player) && !justBroke(player) && !Utilities.isClimbableBlock(player.getLocation().getBlock()) && !player.isInsideVehicle())
{ {
String name = player.getName(); String name = player.getName();
if (y1 < y2) if (y1 < y2)