Reach Detection fix

This commit is contained in:
kirillsaint 2024-01-11 21:16:43 +06:00
parent b333bb4384
commit 6de7309345
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public class Reach extends Detection {
@EventTarget @EventTarget
public void totallyNoReachHax(EntityAttackEvent event) { public void totallyNoReachHax(EntityAttackEvent event) {
if(System.currentTimeMillis() - lastHit < 500 || !PlayerUtils.isSurvival()) { if(System.currentTimeMillis() - lastHit < 500 || !PlayerUtils.isSurvival() || mc.isSingleplayer()) {
return; return;
} }
if(mc.objectMouseOver != null && mc.objectMouseOver.hitVec != null) { if(mc.objectMouseOver != null && mc.objectMouseOver.hitVec != null) {