Update Reach.java

This commit is contained in:
kirillsaint 2024-01-01 15:06:38 +06:00
parent 163fd92770
commit 8086c8b840

View File

@ -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) {