fixed bugs, memory leaks, etc
This commit is contained in:
1 parent
aa4f6b6ddc
commit
c3f8f23c1d
124 files changed
+1060
-420
No files matched your search
@@ -71,12 +71,14 @@ public class Criticals extends Module {
|
||||
if (this.pendingTarget != null) {
|
||||
if (this.ticksUntilAttack <= 0) {
|
||||
this.replayingAttack = true;
|
||||
if (mc.crosshairTarget.getType() == Type.ENTITY) {
|
||||
PlayerInteractions.attackEntity(this.pendingTarget);
|
||||
try {
|
||||
if (mc.player != null && mc.crosshairTarget != null && mc.crosshairTarget.getType() == Type.ENTITY) {
|
||||
PlayerInteractions.attackEntity(this.pendingTarget);
|
||||
}
|
||||
} finally {
|
||||
this.replayingAttack = false;
|
||||
this.pendingTarget = null;
|
||||
}
|
||||
|
||||
this.replayingAttack = false;
|
||||
this.pendingTarget = null;
|
||||
} else {
|
||||
this.ticksUntilAttack--;
|
||||
}
|
||||
@@ -92,6 +94,13 @@ public class Criticals extends Module {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
this.pendingTarget = null;
|
||||
this.ticksUntilAttack = 0;
|
||||
this.replayingAttack = false;
|
||||
}
|
||||
|
||||
private void sendOffsetPosition(float yOffset) {
|
||||
PacketSender.sendPacket(new PositionAndOnGround(mc.player.getX(), mc.player.getY() + yOffset, mc.player.getZ(), false, mc.player.horizontalCollision));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user