diff options
author | md_5 <git@md-5.net> | 2018-02-12 08:59:32 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-02-12 08:59:32 +1100 |
commit | 8bb4f6ccc150ed89eb522571ed643ad84765ca91 (patch) | |
tree | 4b61c36e702129ff5059ff62eb57c2e4531fb554 /nms-patches | |
parent | 49ecc7c7a28bf0074690ce2f1a02232b7fb2385b (diff) | |
download | craftbukkit-8bb4f6ccc150ed89eb522571ed643ad84765ca91.tar craftbukkit-8bb4f6ccc150ed89eb522571ed643ad84765ca91.tar.gz craftbukkit-8bb4f6ccc150ed89eb522571ed643ad84765ca91.tar.lz craftbukkit-8bb4f6ccc150ed89eb522571ed643ad84765ca91.tar.xz craftbukkit-8bb4f6ccc150ed89eb522571ed643ad84765ca91.zip |
SPIGOT-3813: Player.setHealth not reliable in conjunction with attribute API
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/EntityLiving.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/EntityLiving.patch b/nms-patches/EntityLiving.patch index 1fd9494f..1521d5c8 100644 --- a/nms-patches/EntityLiving.patch +++ b/nms-patches/EntityLiving.patch @@ -257,7 +257,7 @@ + player.setRealHealth(f); + } + -+ this.datawatcher.set(EntityLiving.HEALTH, Float.valueOf(player.getScaledHealth())); ++ player.updateScaledHealth(); + return; + } + // CraftBukkit end |