CrystalAura: b1g update hot fixes (hopefully final)

This commit is contained in:
noil 2021-10-30 22:00:29 -04:00
parent c3c33d3ded
commit 3c8bac72ac
1 changed files with 12 additions and 6 deletions

View File

@ -111,16 +111,22 @@ public final class CrystalAuraModule extends Module {
switch (event.getStage()) {
case PRE:
// place position reset
if (mc.player.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeRadius.getValue())
this.currentPlacePosition = null;
if (currentPlacePosition != null) {
if (mc.player.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeRadius.getValue())
this.currentPlacePosition = null;
}
// crystal reset
if ((mc.player.getDistance(this.currentAttackEntity) > this.attackRadius.getValue()) || !this.currentAttackEntity.isEntityAlive())
this.currentAttackEntity = null;
if (currentAttackEntity != null) {
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;
if (currentAttackPlayer != null) {
if ((mc.player.getDistance(this.currentAttackPlayer) > this.attackMaxDistance.getValue()) || !this.currentAttackPlayer.isEntityAlive())
this.currentAttackPlayer = null;
}
//this.currentPlacePosition = null;
//this.currentAttackEntity = null;