Skip to content

GatedSizedPastelRecipe#getIngredients: Don't attempt to access null SizedIngredients - #249

Open
unilock wants to merge 3 commits into
terrarium-earth:feat/1.2.xfrom
unilock:feat/1.2.x
Open

GatedSizedPastelRecipe#getIngredients: Don't attempt to access null SizedIngredients#249
unilock wants to merge 3 commits into
terrarium-earth:feat/1.2.xfrom
unilock:feat/1.2.x

Conversation

@unilock

@unilock unilock commented Aug 3, 2026

Copy link
Copy Markdown

Fixes a crash when GatedSizedPastelRecipe#getIngredients is called for certain recipes (unsure which ones, but iterating the recipe registry will trigger it)

Also makes it build again

EDIT: Also increases the "durability" of bedrock tools from 0 to fix their components failing to encode (see commit details for more information). The chosen durability value is bogus

unilock added 3 commits August 3, 2026 07:13
…izedIngredients

Also use Stream#toList where applicable, which can be more optimized
Having it set to 0 causes the ComponentMap of items using it to fail to encode, as
DataComponentTypes.MAX_DAMAGE requires a positive integer.

I'm not aware of any way to trigger the issue this commit fixes in vanilla / with Pastel alone, but it can be reproduced by attempting to insert a bedrock tool into an Excorrelation storage system.
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