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

EffHealth - fix max damage on custom items #6646

Merged
merged 2 commits into from
May 8, 2024

Conversation

ShaneBeee
Copy link
Contributor

Description

This PR aims to fix an issue with max damage on custom damageable items.
EX: In MC 1.20.5+ I can create an apple that is able to take damage.
This checks the max damage from ItemMeta (if available) otherwise falls back to max durability from Material

(ive also taken into account Fuse's PR fixing the other bug in the same class since the PR isn't merged.)


Target Minecraft Versions: 1.20.5+
Requirements: none
Related Issues: none

@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.8 Targeting a 2.8.X version release labels May 5, 2024
@Moderocky Moderocky added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label May 6, 2024
@sovdeeth sovdeeth merged commit e0aed72 into SkriptLang:dev/patch May 8, 2024
5 checks passed
@ShaneBeee ShaneBeee deleted the fix/EffHealthMaxDamageItem branch May 8, 2024 17:16
sovdeeth added a commit to sovdeeth/Skript that referenced this pull request May 30, 2024
sovdeeth added a commit to sovdeeth/Skript that referenced this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants