mortuusars/Exposure

[Amarite Incompatibility] - Crash when holding a photograph [1.19.2, Quilt]

UmbralSurvivor opened this issue · 4 comments

Might also affect fabric.
crash-2024-02-06_23.09.50-client.txt

I'm on a server with a custom modpack, if that affects anything.

Happens when scrolling items/changing slots to a Photograph

crash-2024-02-07_13.14.20-client.txt
Previous crash report gave a false positive on the issue

This is a known conflict with Amarite. And since their mod is not open source I don't know what they do to make it not work as it should.

I'm not seeing anyting wrong on my part:

if (stack.getItem() instanceof PhotographItem || stack.getItem() instanceof StackedPhotographsItem) {
            if (isMainHand && this.offHandItem.isEmpty()) {
                exposure$renderTwoHandedPhotograph(player, poseStack, buffer, combinedLight, pitch, equipProgress, swingProgress);
            } else {
                exposure$renderOneHandedPhotograph(player, poseStack, buffer, combinedLight, equipProgress, arm, swingProgress, stack);
            }

            poseStack.popPose();

            ci.cancel();
        }

Item Stack is ensured to be a photograph (or a stack of photographs) before rendering. How they make it be air (empty) after that is beyond me.

This seems to have been fixed in Exposure 1.4.0