THERE'S YOUR PROBLEM

This commit is contained in:
h31ix committed 2012-11-27 21:51:28 -05:00
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);