1. Guest, as per the stickied thread, this forum has not been in use since 2014. All bugs and feature requests should be posted to JIRA.

Solved [Patch-Attached] Player Health above 20 does not scale on Food regain.

Discussion in 'Bugs & Feature Requests' started by Silthus, Jun 6, 2013.

  1. Hi,

    since Bukkit seems to never come out of his code freeze and needs a example Plugin for an one line change thats completly justified, I will try my luck here.

    When a plugin sets the player health above 20 normally it is scaled to display the health state of the player in the amount of hearts he got.

    scaledHealth = health / maxHealth

    But when bukkit changed it to scaled health they missed the food update, which sends the health of the player too. So in all events (damage, heal, and so on) the health is scaled but when the player regains food the healthbar will jump to max and stay there until one ove the above events happen.

    Here is the fix for that: https://github.com/Bukkit/CraftBukkit/pull/1144
     
  2. If no one notices this try make a pull on the spigot git instead
     
  3. md_5

    Administrator Developer

    • Like Like x 3
  4. Wooo that answer was fast :)
    Thanks a lot!
     
  5. Sorry.. But how can I fix that problem?
    I'm using Spigot 1.6.4.

    :x