Skip to content

fix: toolbox crash when using pick block on some entities (#10809) - #10823

Open
compilin wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
compilin:mc1.21.1/dev
Open

compilin wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
compilin:mc1.21.1/dev

Conversation

@compilin

@compilin compilin commented Oct 14, 2026 •

Copy link
Copy Markdown

After crashing repeatedly (see #10809) trying to use pick-block near toolboxes, I hunted the problem down. Turns out that getPickedResult there :


Can return null. I assume that is if the entity doesn't have a spawn egg. That is the case with Ars Nouveau pets, or the more annoying flying bows of the Balistasarian Bracer from Reliquified Ars Nouveau that gets in the way a lot. That explains the inconsistency of the crashes, it only happened when one of those bows passed in front of my camera at the wrong time.
The method itself is tagged @ Nullable so it's definitely a bug of Create, but it's an easy fix.

@VoidLeech VoidLeech added pr type: fix PR fixes a bug pr flag: simple PR has minimal changes labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr flag: simple PR has minimal changes pr type: fix PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants