mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Cleanup cleanup... Fixed false-positive for item drop system seeing as it caused high hack status in a matter of seconds.
This commit is contained in:
1 parent
e9a0bc2bdd
commit
bbd73ec4c3
4 files changed
+3
-3
No files matched your search
@@ -61,7 +61,6 @@ public class EntityListener implements Listener {
|
||||
{
|
||||
Player p = (Player) e.getDamager();
|
||||
ex.logHit(p);
|
||||
ex.logHit(player);
|
||||
LengthCheck lc = new LengthCheck(event.getEntity().getLocation(),p.getLocation());
|
||||
if(lc.getXDifference() > 5.0D || lc.getZDifference() > 5.0D || lc.getYDifference() > 4.3D)
|
||||
{
|
||||
@@ -74,6 +73,7 @@ public class EntityListener implements Listener {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
ex.logHit(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ public class PlayerListener implements Listener {
|
||||
else
|
||||
{
|
||||
plugin.log(player.getName()+" tried to drop blocks too fast!");
|
||||
tracker.increaseLevel(player);
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user