mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Don't check NoFall when in water
This commit is contained in:
1 parent
c647bb4b6a
commit
84fdb02c4f
1 file changed
+1
-1
@@ -323,7 +323,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))
|
if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player) && !Utilities.isInWater(player))
|
||||||
{
|
{
|
||||||
if (player.getFallDistance() == 0)
|
if (player.getFallDistance() == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user