Skip to content

Commit

Permalink
Don't crash on non-player heads. Fix #203
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Dec 7, 2024
1 parent 6b32399 commit 97580e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class BlockEntityWithoutLevelRendererMixin {
@Inject(method = "render", at = @At("HEAD"))
public void render(ResolvableProfile resolvableProfile, ItemDisplayContext itemDisplayContext, PoseStack poseStack,
MultiBufferSource multiBufferSource, int i, int j, boolean bl, CallbackInfo ci) {
if (SkinLayersModBase.config.enableSkullsItems && resolvableProfile.isResolved()) {
if (SkinLayersModBase.config.enableSkullsItems && resolvableProfile != null && resolvableProfile.isResolved()) {
GameProfile gameProfile = resolvableProfile.gameProfile();
if (gameProfile != null) {
lastSkull = (SkullSettings) itemCache.computeIfAbsent(gameProfile, it -> new ItemSettings());
Expand Down

0 comments on commit 97580e5

Please sign in to comment.