Skip to content

fix(craft): handle empty shaped recipe slots and use ItemTypeChoice - #653

Merged
Siroshun09 merged 2 commits into
mainfrom
fix/craft-empty-slots-item-type-choice
Oct 29, 2026
Merged

Siroshun09 merged 2 commits into
mainfrom
fix/craft-empty-slots-item-type-choice

Conversation

@Siroshun09

Copy link
Copy Markdown
Member

Summary

  • Skip empty slots in shaped recipes when getShape() contains characters with no associated RecipeChoice. This prevents minecart, scaffolding, and other recipes with gaps from being dropped.
  • Replace obsolete RecipeChoice.MaterialChoice handling with RecipeChoice.ItemTypeChoice, resolving item types through the item registry.

Verification

  • Confirmed both changed files are present on the branch.
  • No tests added, as requested.

Note: This follows the current Paper 26.2+ API; legacy third-party recipes using MaterialChoice directly are no longer imported by this branch.

@Siroshun09
Siroshun09 merged commit d933f64 into main Oct 29, 2026
3 checks passed
@Siroshun09 Siroshun09 mentioned this pull request Oct 29, 2026
6 tasks
@Siroshun09
Siroshun09 deleted the fix/craft-empty-slots-item-type-choice branch October 29, 2026 10:40
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