mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fixed sneak checks while flying
This commit is contained in:
1 parent
f545832f4c
commit
d8dc8ed1e0
1 file changed
+1
-1
@@ -220,7 +220,7 @@ public class PlayerListener extends EventListener
|
||||
event.setTo(from);
|
||||
log("tried to walk on water.",player,CheckType.WATER_WALK);
|
||||
}
|
||||
if(checkManager.willCheck(player, CheckType.SNEAK) && backend.checkSneak(player,x,z))
|
||||
if(checkManager.willCheck(player, CheckType.SNEAK) && checkManager.willCheck(player, CheckType.FLY) && checkManager.willCheck(player, CheckType.ZOMBE_FLY) && backend.checkSneak(player,x,z))
|
||||
{
|
||||
event.setTo(from);
|
||||
player.setSneaking(false);
|
||||
|
||||
Reference in new issue
Block a user