mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
THERE'S YOUR PROBLEM
This commit is contained in:
1 parent
ba40bdc369
commit
31510b42d5
2 files changed
+25
-3
No files matched your search
@@ -166,7 +166,7 @@ public class EntityListener extends EventListener
|
||||
log("tried to damage an entity without swinging their arm.", player, CheckType.NO_SWING);
|
||||
noHack = false;
|
||||
}
|
||||
if (checkManager.willCheck(player, CheckType.FORCEFIELD))
|
||||
if (checkManager.willCheck(player, CheckType.FORCEFIELD) && !backend.checkSight(player, e.getEntity()))
|
||||
{
|
||||
event.setCancelled(!config.silentMode());
|
||||
log("tried to damage an entity that they couldn't see.", player, CheckType.FORCEFIELD);
|
||||
|
||||
Reference in new issue
Block a user