SPIGOT-3813: Player.setHealth not reliable in conjunction with attribute API
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
+ player.setRealHealth(f);
|
||||
+ }
|
||||
+
|
||||
+ this.datawatcher.set(EntityLiving.HEALTH, Float.valueOf(player.getScaledHealth()));
|
||||
+ player.updateScaledHealth();
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
Reference in New Issue
Block a user