mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +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);
|
event.setTo(from);
|
||||||
log("tried to walk on water.",player,CheckType.WATER_WALK);
|
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);
|
event.setTo(from);
|
||||||
player.setSneaking(false);
|
player.setSneaking(false);
|
||||||
|
|||||||
Reference in new issue
Block a user