CrystalAura: b1g update hot fixes

This commit is contained in:
noil 2021-10-30 21:57:39 -04:00
parent e04eebaa36
commit 8142673dde
1 changed files with 8 additions and 2 deletions

View File

@ -110,12 +110,18 @@ public final class CrystalAuraModule extends Module {
switch (event.getStage()) {
case PRE:
if (mc.player.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeMaxDistance.getValue())
// place position reset
if (mc.player.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeLocalDistance.getValue())
this.currentPlacePosition = null;
if ((mc.player.getDistance(this.currentAttackEntity) > this.attackMaxDistance.getValue()) || !this.currentAttackEntity.isEntityAlive())
// crystal reset
if ((mc.player.getDistance(this.currentAttackEntity) > this.attackRadius.getValue()) || !this.currentAttackEntity.isEntityAlive())
this.currentAttackEntity = null;
// target reset
if ((mc.player.getDistance(this.currentAttackPlayer) > this.attackMaxDistance.getValue()) || !this.currentAttackPlayer.isEntityAlive())
this.currentAttackPlayer = null;
//this.currentPlacePosition = null;
//this.currentAttackEntity = null;