From 8bb4f6ccc150ed89eb522571ed643ad84765ca91 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Feb 2018 08:59:32 +1100 Subject: SPIGOT-3813: Player.setHealth not reliable in conjunction with attribute API --- nms-patches/EntityLiving.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches') 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 -- cgit v1.2.3