mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
[BETA TEST] Remove isFlying() check out of speed check.
This commit is contained in:
1 parent
90953cb223
commit
abaad13e14
1 file changed
+7
-3
@@ -136,7 +136,7 @@ public class Backend
|
||||
|
||||
public boolean checkYSpeed(Player player,double y)
|
||||
{
|
||||
if(!player.isFlying() && player.getVehicle() == null && y > Y_SPEED_MAX)
|
||||
if(/*!player.isFlying() &&*/ player.getVehicle() == null && y > Y_SPEED_MAX)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -180,7 +180,7 @@ public class Backend
|
||||
|
||||
public boolean checkXZSpeed(Player player,double x,double z)
|
||||
{
|
||||
if(!isMovingExempt(player) && player.getVehicle() == null)
|
||||
if(!isSpeedExempt(player) && player.getVehicle() == null)
|
||||
{
|
||||
if(!player.isSprinting())
|
||||
{
|
||||
@@ -556,7 +556,11 @@ public class Backend
|
||||
public boolean isMovingExempt(Player player)
|
||||
{
|
||||
return movingExempt.contains(player.getName()) || player.isFlying();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isSpeedExempt(Player player) {
|
||||
return movingExempt.contains(player.getName());
|
||||
}
|
||||
|
||||
public void logDroppedItem(final Player player)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user