Reach Detection fix

This commit is contained in:
kirillsaint 2024-01-11 21:11:29 +06:00
parent cd9ad7311a
commit 2cedc51b71
1 changed files with 1 additions and 1 deletions

View File

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