Skip to content

Fixed a bug that duplicated items. #951

Open
yansunsky wants to merge 1 commit into
ryanhcode:mainfrom
yansunsky:main
Open

Fixed a bug that duplicated items. #951
yansunsky wants to merge 1 commit into
ryanhcode:mainfrom
yansunsky:main

Conversation

@yansunsky
Copy link
Copy Markdown

The bug was: when an item was placed on a Table Cloth, using the Physics Assembler would cause the item to be duplicated. The fix was based on the fact that blocks like Table Cloth are not registered as clearable, so an additional method was written to handle blocks not registered as clearable. The implementation approach is to directly initialize the block's NBT, retaining only its own ID, since it will be removed soon.
This is my first time using a pull request. I'm not sure if my fix is a good solution, but it should be useful.

…ced on a Table Cloth, using the Physics Assembler would cause the item to be duplicated. The fix was based on the fact that blocks like Table Cloth are not registered as clearable, so an additional method was written to handle blocks not registered as clearable. The implementation approach is to directly initialize the block's NBT, retaining only its own ID, since it will be removed soon."
@yansunsky
Copy link
Copy Markdown
Author

Uploading 202605192308_20260519_23104878.mp4…

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 19, 2026

CLA assistant check
All committers have signed the CLA.

@yansunsky
Copy link
Copy Markdown
Author

fix #170

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