mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed minecarts traveling over water.
This commit is contained in:
1 parent
f2475d5803
commit
3d3af50e1b
2 files changed
+2
-2
No files matched your search
@@ -320,7 +320,7 @@ public class PlayerListener implements Listener {
|
||||
//No change in Y
|
||||
else
|
||||
{
|
||||
if(!player.hasPermission("anticheat.flyhack") && !player.isFlying())
|
||||
if(!player.hasPermission("anticheat.flyhack") && !player.isFlying() && player.getVehicle() == null)
|
||||
{
|
||||
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
|
||||
if(!player.isSneaking())
|
||||
|
||||
@@ -33,6 +33,6 @@ public class FlyManager {
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user