mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +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)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ public class Backend
|
|||||||
|
|
||||||
public boolean checkXZSpeed(Player player,double x,double z)
|
public boolean checkXZSpeed(Player player,double x,double z)
|
||||||
{
|
{
|
||||||
if(!isMovingExempt(player) && player.getVehicle() == null)
|
if(!isSpeedExempt(player) && player.getVehicle() == null)
|
||||||
{
|
{
|
||||||
if(!player.isSprinting())
|
if(!player.isSprinting())
|
||||||
{
|
{
|
||||||
@@ -556,7 +556,11 @@ public class Backend
|
|||||||
public boolean isMovingExempt(Player player)
|
public boolean isMovingExempt(Player player)
|
||||||
{
|
{
|
||||||
return movingExempt.contains(player.getName()) || player.isFlying();
|
return movingExempt.contains(player.getName()) || player.isFlying();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSpeedExempt(Player player) {
|
||||||
|
return movingExempt.contains(player.getName());
|
||||||
|
}
|
||||||
|
|
||||||
public void logDroppedItem(final Player player)
|
public void logDroppedItem(final Player player)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user