mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Fixed minecarts traveling over water.
This commit is contained in:
1 parent
f2475d5803
commit
3d3af50e1b
1 file changed
+1
-1
@@ -320,7 +320,7 @@ public class PlayerListener implements Listener {
|
|||||||
//No change in Y
|
//No change in Y
|
||||||
else
|
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);
|
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
|
||||||
if(!player.isSneaking())
|
if(!player.isSneaking())
|
||||||
|
|||||||
Reference in new issue
Block a user