Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Fix item pickup events#193

Merged
TheGlitch76 merged 1 commit intomasterfrom
bugfix/item-pickup
Oct 24, 2020
Merged

Fix item pickup events#193
TheGlitch76 merged 1 commit intomasterfrom
bugfix/item-pickup

Conversation

@cittyinthecloud
Copy link
Copy Markdown
Contributor

EntityItemPickupEvent and PlayerEvent.ItemPickupEvent were implemented incorrectly, leading to no items being able to be picked up and events firing at times they shouldn't. This PR fixes the implementation of these two events.

Comment on lines +68 to +69
at = @At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;getCount()I"),
cancellable = true
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.

These lines are being re-indented - any particular reason?

Copy link
Copy Markdown
Member

@TheGlitch76 TheGlitch76 left a comment

Choose a reason for hiding this comment

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

Sorry for taking so long! The indention is a little funky on this but it's a pretty bad bug so i'll leave it to be fixed Later:tm:
Please bother me on Discord about PR reviews if I don't even remark that I'm waiting on something, it's very likely I've just forgotten about it

@TheGlitch76 TheGlitch76 merged commit dee1357 into master Oct 24, 2020
@TheGlitch76 TheGlitch76 deleted the bugfix/item-pickup branch October 24, 2020 16:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants