Skip to content

Fix bound blade not dropping blood shards if you kill in one hit - #141

Merged
Dream-Master merged 1 commit into
masterfrom
blood-shard-fix
Jul 14, 2026
Merged

Fix bound blade not dropping blood shards if you kill in one hit#141
Dream-Master merged 1 commit into
masterfrom
blood-shard-fix

Conversation

@koolkrafter5

Copy link
Copy Markdown

Item::hitEntity is called after LivingDropsEvent for some reason, meaning the weakness was applied after the check for it to add blood shards to the items dropped by mobs. This made it impossible to get blood shards if you killed the mob in one hit (or if you left it on low health and hit it again after the weakness ran out).

This moves the weakness effect application to LivingHurtEvent which is called before the drops are gathered. Also moves the LivingDropsEvent from its own special class to the one with all the other handlers.

Before this change:

before.mp4

After:

after.mp4

@koolkrafter5
koolkrafter5 requested a review from a team July 13, 2026 17:20
@koolkrafter5 koolkrafter5 added the Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. label Jul 13, 2026

@jordanamr jordanamr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@Dream-Master
Dream-Master merged commit 6f45c3e into master Jul 14, 2026
1 check passed
@Dream-Master
Dream-Master deleted the blood-shard-fix branch July 14, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants