Skip to content

[BUG]]fix crash#12

Open
Cjsah wants to merge 3 commits into
lentel27:masterfrom
Cjsah:master
Open

[BUG]]fix crash#12
Cjsah wants to merge 3 commits into
lentel27:masterfrom
Cjsah:master

Conversation

@Cjsah
Copy link
Copy Markdown

@Cjsah Cjsah commented Oct 11, 2025

In BlockEntityRunicAltarPattern:182, it only checks whether UPGRADE_SLOT_1 != -1, yet it calls getSlotUpgrade2().isEmpty().
If getSlotUpgrade2 returns null at this point, it will cause the NPE.

I have set both getSlotUpgrade1 and getSlotUpgrade2 to return ItemStack.EMPTY by default.
Additionally, I have simplified the conditional logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant