Skip to content

rework world equals checks#818

Merged
Raycoms merged 5 commits intoversion/1.21from
equalcheckrework
Feb 15, 2026
Merged

rework world equals checks#818
Raycoms merged 5 commits intoversion/1.21from
equalcheckrework

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

someaddons
someaddons previously approved these changes Feb 14, 2026
@someaddons
Copy link
Contributor

approved when the null thing is fixed

@Raycoms Raycoms merged commit e9284ba into version/1.21 Feb 15, 2026
5 checks passed
@Raycoms Raycoms deleted the equalcheckrework branch February 15, 2026 16:41
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