diff --git a/patches/server/Don-t-complete-skull-lookups-on-main-thread-MC-22743.patch b/patches/server/Don-t-complete-skull-lookups-on-main-thread-MC-22743.patch index fc7a21a7d..4ea670d16 100644 --- a/patches/server/Don-t-complete-skull-lookups-on-main-thread-MC-22743.patch +++ b/patches/server/Don-t-complete-skull-lookups-on-main-thread-MC-22743.patch @@ -15,6 +15,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - SkullBlockEntity.profileCache.getAsync(owner.getName(), (gameprofile1) -> { + // Paper start + SkullBlockEntity.profileCache.getAsync(owner.getName(), (gameprofile) -> { ++ if (gameprofile == null) { ++ net.minecraft.server.MinecraftServer.getServer().scheduleOnMain(() -> callback.accept(owner)); ++ return; ++ } + Runnable runnable = () -> { + GameProfile gameprofile1 = gameprofile; Property property = (Property) Iterables.getFirst(gameprofile1.getProperties().get("textures"), (Object) null);