Skip to content

Use player's max health instead of the default health value on heal s…#5752

Merged
pop4959 merged 1 commit intoEssentialsX:2.xfrom
ImDarkLaw:fix/healsigns
Mar 31, 2024
Merged

Use player's max health instead of the default health value on heal s…#5752
pop4959 merged 1 commit intoEssentialsX:2.xfrom
ImDarkLaw:fix/healsigns

Conversation

@ImDarkLaw
Copy link
Contributor

Information

This PR fixes #5751.

Details

Proposed fix:

Use the player's maximum health, instead of the default health value of 20, upon heal sign interaction.

Environments tested:

OS: Windows 11

Java version: OpenJDK Runtime Environment Corretto-21.0.2.13.1

  • Most recent Paper version (1.20.4, git-Paper-463)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:

Before implementing suggested fix:
https://github.com/EssentialsX/Essentials/assets/44745161/a7e7919f-97aa-434e-84a6-50d5b829633e

After:
https://github.com/EssentialsX/Essentials/assets/44745161/1051e669-1eed-44b9-a1cd-bd8fb8a17312

Copy link
Member

@Evidentsinger14 Evidentsinger14 left a comment

Choose a reason for hiding this comment

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

LGTM

@pop4959 pop4959 enabled auto-merge (squash) March 31, 2024 22:53
@pop4959 pop4959 added type: bugfix PRs that fix bugs in EssentialsX. module: main Issues or PRs for the main Essentials module labels Mar 31, 2024
@pop4959 pop4959 merged commit 71ca7ff into EssentialsX:2.x Mar 31, 2024
@ImDarkLaw ImDarkLaw deleted the fix/healsigns branch April 1, 2024 08:04
HarvelsX pushed a commit to HarvelsX/Essentials that referenced this pull request Jun 2, 2024
Starmism pushed a commit to valence-smp/Essentials that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heal signs do not account for custom max health values

3 participants