mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
Update Reach.java
This commit is contained in:
parent
163fd92770
commit
8086c8b840
@ -4,6 +4,7 @@ import net.silentclient.client.event.EventTarget;
|
||||
import net.silentclient.client.event.impl.EntityAttackEvent;
|
||||
import net.silentclient.client.mods.hud.ReachDisplayMod;
|
||||
import net.silentclient.client.skillissue.SkillIssue;
|
||||
import net.silentclient.client.utils.PlayerUtils;
|
||||
|
||||
public class Reach extends Detection {
|
||||
private long lastHit = 0;
|
||||
@ -14,7 +15,7 @@ public class Reach extends Detection {
|
||||
|
||||
@EventTarget
|
||||
public void totallyNoReachHax(EntityAttackEvent event) {
|
||||
if(System.currentTimeMillis() - lastHit < 500) {
|
||||
if(System.currentTimeMillis() - lastHit < 500 || !PlayerUtils.isSurvival()) {
|
||||
return;
|
||||
}
|
||||
if(mc.objectMouseOver != null && mc.objectMouseOver.hitVec != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user