Don't check NoFall when in water

This commit is contained in:
H31IX committed 2012-08-07 18:43:58 -04:00
1 parent c647bb4b6a
commit 84fdb02c4f
1 file changed
+1 -1
@@ -323,7 +323,7 @@ public class Backend
public boolean checkNoFall(Player player, double y)
{
String name = player.getName();
if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player))
if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player) && !Utilities.isInWater(player))
{
if (player.getFallDistance() == 0)
{