Skip to content

Commit

Permalink
Fixed Aimbot crash
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonk9043 committed Jun 25, 2024
1 parent b62eafc commit 2608a6b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/aoba/AobaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class AobaClient {
public static final String NAME = "Aoba";
public static final String VERSION = "1.21";
public static final String AOBA_VERSION = "1.4.1";
public static final String AOBA_VERSION = "1.4.2";

public static MinecraftClient MC;
public static IMinecraftClient IMC;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/aoba/module/ModuleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public ModuleManager() {
addModule(jetpack);
addModule(killaura);
addModule(maceaura);
addModule(nametags);
//addModule(nametags);
addModule(noclip);
addModule(nofall);
addModule(nojumpdelay);
Expand Down
10 changes: 7 additions & 3 deletions src/main/java/net/aoba/module/modules/combat/Aimbot.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ public void OnUpdate(TickEvent event) {
if (!targetFriends.getValue() && Aoba.getInstance().friendsList.contains(entity))
continue;

double entityDistanceToPlayer = entity.squaredDistanceTo(MC.player);
if (entityDistanceToPlayer < entityFound.squaredDistanceTo(MC.player) && entityDistanceToPlayer < radiusSqr) {
entityFound = entity;
if(entityFound == null)
entityFound = (LivingEntity)entity;
else {
double entityDistanceToPlayer = entity.squaredDistanceTo(MC.player);
if (entityDistanceToPlayer < entityFound.squaredDistanceTo(MC.player) && entityDistanceToPlayer < radiusSqr) {
entityFound = entity;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "aoba",
"version": "1.4.1",
"version": "1.4.2",
"name": "Aoba Hacked Client",
"description": "Custom hacked client running on Fabric 1.21",
"authors": [
Expand Down

0 comments on commit 2608a6b

Please sign in to comment.