Skip to content

Commit

Permalink
Fix wearing default player heads crashing. Fix #205
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Dec 7, 2024
1 parent 97580e5 commit bdd8260
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void render(PoseStack poseStack, MultiBufferSource multiBufferSource, int
return; // too far away
}
//#if MC >= 12104
if ((!livingEntityRenderState.headItem.isEmpty() || livingEntityRenderState.wornHeadType != null) && livingEntityRenderState.wornHeadProfile.isResolved()) {
if ((!livingEntityRenderState.headItem.isEmpty() || livingEntityRenderState.wornHeadType != null) && livingEntityRenderState.wornHeadProfile != null && livingEntityRenderState.wornHeadProfile.isResolved()) {
GameProfile gameProfile = livingEntityRenderState.wornHeadProfile.gameProfile();
lastSkull = (SkullSettings) itemCache.computeIfAbsent(gameProfile, it -> new ItemSettings());
if (!lastSkull.initialized() && lastSkull.getHeadLayers() == null) {
Expand Down

0 comments on commit bdd8260

Please sign in to comment.