mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:11:31 +01:00
Reach Detection fix
This commit is contained in:
parent
b333bb4384
commit
6de7309345
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user