Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block damaged items duplication #1488

Merged
merged 3 commits into from
Aug 5, 2021

Conversation

PetteriM1
Copy link
Collaborator

There might be better ways to fix this but this patches #1483 and other dupes by the same cause for now

(Fix #1483)

@Creeperface01
Copy link
Contributor

What dupes exactly does it fix?

@PetteriM1
Copy link
Collaborator Author

What dupes exactly does it fix?

This should fix all dupes which are caused by damaged item set back even the original item is not in the inventory anymore ("thorns dupe" and "crystal dupe" for example)

@Creeperface01
Copy link
Contributor

Hm but what exactly leads to a dupe? useItemOn() returns the same Item after processing the interaction. Or how is that related to thorns or crystal?

@PetteriM1
Copy link
Collaborator Author

Hm but what exactly leads to a dupe? useItemOn() returns the same Item after processing the interaction. Or how is that related to thorns or crystal?

You kill yourself when the item is damaged and you get it back to your inventory (duplicated) even the inventory contents are already dropped

@PetteriM1
Copy link
Collaborator Author

So @Creeperface01 you ok with this or do you have better ideas?

@SupremeMortal SupremeMortal merged commit d063058 into CloudburstMC:master Aug 5, 2021
wode490390 pushed a commit to NetEasePE/Nukkit that referenced this pull request Dec 26, 2021
* Block damaged items duplication

* Update Player.java

(cherry picked from commit d063058)
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.

Thorns Duplication
3 participants