Skip to content

Conversation

@Raycoms
Copy link
Contributor

@Raycoms Raycoms commented Feb 8, 2026

Closes #
Closes #

Changes proposed in this pull request

  • Properly Handle Equal checks in the IPlacementHandlers
  • Pass context in new "IPlacementContext"
  • Fix solid/fluid/grass and potted plant oddities

This will break binary compat intentionally as otherwise it can cause weird bugs.

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Still testing don't merge yet

Review please

@Thodor12
Copy link
Contributor

Thodor12 commented Feb 8, 2026

@Raycoms What is this sonarqubecloud thing, is this something new?

final IPlacementHandler handler = PlacementHandlers.getHandler(world, BlockPos.ZERO, blockState);
final List<ItemStack> itemList =
handler.getRequiredItems(world, position, blockState, tileEntity == null ? null : tileEntity.saveWithFullMetadata(world.registryAccess()), true);
handler.getRequiredItems(world, position, blockState, tileEntity == null ? null : tileEntity.saveWithFullMetadata(world.registryAccess()), null);
Copy link
Contributor

Choose a reason for hiding this comment

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

null instead of true/false?

@sonarqubecloud
Copy link

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.

4 participants