diff --git a/src/main/java/carpet/patches/EntityPlayerMPFake.java b/src/main/java/carpet/patches/EntityPlayerMPFake.java index 62cffb72d..7fe25274f 100644 --- a/src/main/java/carpet/patches/EntityPlayerMPFake.java +++ b/src/main/java/carpet/patches/EntityPlayerMPFake.java @@ -65,7 +65,7 @@ public static void createFake(String username, MinecraftServer server, Vec3 pos, } } GameProfile finalGP = gameprofile; - fetchGameProfile(gameprofile.getName()).thenAccept(p -> { + fetchGameProfile(gameprofile.getName()).thenAcceptAsync(p -> { GameProfile current = finalGP; if (p.isPresent()) { @@ -84,7 +84,8 @@ public static void createFake(String username, MinecraftServer server, Vec3 pos, //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; } private static CompletableFuture> fetchGameProfile(final String name) {