Skip to content

Commit

Permalink
Fix Race Condition Crash Exploit (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells authored Jan 18, 2024
1 parent dd381a8 commit 2fabf39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/carpet/patches/EntityPlayerMPFake.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static boolean createFake(String username, MinecraftServer server, Vec3 p
}
}
GameProfile finalGP = gameprofile;
fetchGameProfile(gameprofile.getName()).thenAccept(p -> {
fetchGameProfile(gameprofile.getName()).thenAcceptAsync(p -> {
GameProfile current = finalGP;
if (p.isPresent())
{
Expand All @@ -85,7 +85,7 @@ public static boolean createFake(String username, MinecraftServer server, Vec3 p
//instance.world.getChunkManager(). updatePosition(instance);
instance.entityData.set(DATA_PLAYER_MODE_CUSTOMISATION, (byte) 0x7f); // show all model layers (incl. capes)
instance.getAbilities().flying = flying;
});
}, server);
return true;
}

Expand Down

0 comments on commit 2fabf39

Please sign in to comment.