Skip to content

Commit

Permalink
[*] 问题修复(1.5.4): 修复 Heads 在处理在线玩家时的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Polar-Pumpkin committed Jul 25, 2023
1 parent 36f4337 commit fda1cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/serverct/parrot/parrotx/util/Heads.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object Heads {
// from cache
cachedTextures[username]?.let { return CompletableFuture.completedFuture(it) }
// from Player
Bukkit.getPlayerExact(username).invokeMethod<GameProfile>("getProfile")
Bukkit.getPlayerExact(username)?.invokeMethod<GameProfile>("getProfile")
?.let { fromGameProfile(username, it) }
?.let { return it }
// from OfflinePlayer
Expand Down

0 comments on commit fda1cb7

Please sign in to comment.