Skip to content

Fix rooted dirt hoe drops#774

Open
Jan1k1 wants to merge 1 commit into
Winds-Studio:ver/1.21.11from
Jan1k1:fix/rooted-dirt-hoe-drops
Open

Fix rooted dirt hoe drops#774
Jan1k1 wants to merge 1 commit into
Winds-Studio:ver/1.21.11from
Jan1k1:fix/rooted-dirt-hoe-drops

Conversation

@Jan1k1

@Jan1k1 Jan1k1 commented Jun 13, 2026

Copy link
Copy Markdown

Fixes #773.

ItemStack#useOn captures hoe drops so cancelled block changes do not dupe rooted dirt drops, but the captured drops were only released in the tree-generation path.

Normal hoe tilling goes through the block-place event path, so Purpur's configured minecraft:hanging_roots drop was captured and then discarded. This releases captured hoe drops after the normal path succeeds, while still dropping them on cancelled placement.

Tested with:

  • ./gradlew.bat :leaf-server:applyMinecraftFeaturePatches --no-configuration-cache
  • ./gradlew.bat :leaf-server:compileJava --no-configuration-cache

@HaHaWTH HaHaWTH left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution! Looks good, but changes should be merged into patch 0264-Paper PR: Fix cancelled rooted dirt drops being duped, which is cleaner than making another one.

@HaHaWTH HaHaWTH added the type: fix Pull request for fixing bug label Jun 14, 2026
@Jan1k1 Jan1k1 force-pushed the fix/rooted-dirt-hoe-drops branch from 0cd7141 to ba54461 Compare June 14, 2026 13:18
@Jan1k1

Jan1k1 commented Jun 14, 2026

Copy link
Copy Markdown
Author

Moved into patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Pull request for fixing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rooted Dirt does not drop Hanging Roots on Leaf

2 participants