Skip to content

Fixed a bug that duplicated items. (Slowed + Reverb)#966

Open
lap2ka wants to merge 1 commit into
ryanhcode:mainfrom
lap2ka:fix170
Open

Fixed a bug that duplicated items. (Slowed + Reverb)#966
lap2ka wants to merge 1 commit into
ryanhcode:mainfrom
lap2ka:fix170

Conversation

@lap2ka
Copy link
Copy Markdown
Contributor

@lap2ka lap2ka commented May 20, 2026

Fix #170
Slows and reverbs #951

Copilot AI review requested due to automatic review settings May 20, 2026 01:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the block-assembly/move logic to reduce item duplication when assembling containers or other block entities that can hold items but don’t implement Clearable (referenced by Issue #170 and the earlier fix in PR #951).

Changes:

  • When moving blocks, clears contents for Clearable block entities as before.
  • Adds a fallback path for non-Clearable block entities: if an NBT tag exists, reloads the source block entity from an empty CompoundTag before the old block is destroyed, aiming to prevent duplicate drops/state retention.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lap2ka
Copy link
Copy Markdown
Contributor Author

lap2ka commented May 20, 2026

This bug allowed me to make great things like https://discord.com/channels/937435293294919690/937435293294919694/1506431036932755598

Safe to say it will be dearly missed

@lap2ka
Copy link
Copy Markdown
Contributor Author

lap2ka commented May 20, 2026

image image

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.

Item Duplication

2 participants