CrystalAura: Fix placement bug

This commit is contained in:
noil 2021-11-06 16:30:04 -04:00
parent a2c712d165
commit e9496efb53
1 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,12 @@ public final class CrystalAuraModule extends Module {
switch (event.getStage()) {
case PRE:
if (this.currentAttackPlayer != null && this.currentPlacePosition != null) {
if (this.currentAttackPlayer.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeMaxDistance.getValue()) {
this.currentPlacePosition = null;
}
}
// place position reset
if (currentPlacePosition != null) {
if (!this.place.getValue() || mc.player.getDistance(this.currentPlacePosition.getX(), this.currentPlacePosition.getY(), this.currentPlacePosition.getZ()) > this.placeRadius.getValue()) {