Skip to content

Use IBlockExtension#getCloneItemStack instead of new ItemStack(Block)#8716

Open
Frinn38 wants to merge 3 commits intoAppliedEnergistics:mainfrom
Frinn38:main
Open

Use IBlockExtension#getCloneItemStack instead of new ItemStack(Block)#8716
Frinn38 wants to merge 3 commits intoAppliedEnergistics:mainfrom
Frinn38:main

Conversation

@Frinn38
Copy link
Copy Markdown

@Frinn38 Frinn38 commented Nov 10, 2025

This PR implements a TODO in PatternContainerGroup by using NeoForge IBlockExtension#getCloneItemStack instead of a simple new ItemStack for finding the item to display in the pattern access terminal.

This gives the targeted block more context (level, pos) so the returned item should be more correct, as currently blocks that rely on their BlockEntity to return an item are displayed incorrectly.

Copy link
Copy Markdown
Member

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks

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.

2 participants