mirror of
https://github.com/seppukudevelopment/seppuku
synced 2025-02-12 09:38:59 +00:00
CrystalAura: Fix placement bug
This commit is contained in:
parent
a2c712d165
commit
e9496efb53
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user