mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Fixed flight detection on edge of stairs, and possible error when kicking players
This commit is contained in:
1 parent
493a9c8d33
commit
6d611b905f
2 files changed
+8
-1
No files matched your search
@@ -597,7 +597,7 @@ public class Backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if(player.isSneaking() && Utilities.isStair(block.getRelative(BlockFace.NORTH)) || Utilities.isStair(block.getRelative(BlockFace.SOUTH)) || Utilities.isStair(block.getRelative(BlockFace.EAST)) || Utilities.isStair(block.getRelative(BlockFace.WEST)))
|
||||
else if(player.isSneaking() && (Utilities.isStair(block.getRelative(BlockFace.NORTH)) || Utilities.isStair(block.getRelative(BlockFace.SOUTH)) || Utilities.isStair(block.getRelative(BlockFace.EAST)) || Utilities.isStair(block.getRelative(BlockFace.WEST)) || Utilities.isStair(block.getRelative(BlockFace.NORTH_EAST)) || Utilities.isStair(block.getRelative(BlockFace.SOUTH_EAST)) || Utilities.isStair(block.getRelative(BlockFace.SOUTH_WEST)) || Utilities.isStair(block.getRelative(BlockFace.NORTH_WEST))))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,8 @@ public class User
|
||||
}
|
||||
|
||||
public boolean increaseLevel(CheckType type)
|
||||
{
|
||||
if(getPlayer().isOnline())
|
||||
{
|
||||
if(silentMode && type.getUses(name) % 4 != 0)
|
||||
{
|
||||
@@ -90,6 +92,11 @@ public class User
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void decreaseLevel()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user