forked from BynBang/OpenPrestige
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
@@ -22,7 +22,7 @@ public class TargetTracker implements MinecraftAccess {
|
||||
|
||||
@Subscribe
|
||||
public void onClientTick(ClientTickEvent event) {
|
||||
if (this.target != null && (mc.world == null || !this.target.isAlive() || this.target.distanceTo(mc.player) > 15.0F || System.currentTimeMillis() - this.lastAttackTime > 5000L)) {
|
||||
if (this.target != null && (mc.world == null || mc.player == null || !this.target.isAlive() || this.target.distanceTo(mc.player) > 15.0F || System.currentTimeMillis() - this.lastAttackTime > 5000L)) {
|
||||
this.target = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user