From eac756470a51ddbbc64d34cdb191b7c87fc2113a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 9 Jun 2017 09:11:02 +0100 Subject: [PATCH] Fixed trying to save health as a ShortTag, close #1039 --- src/pocketmine/entity/Living.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index 0f4ac8d39..1fa732c80 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -102,7 +102,7 @@ abstract class Living extends Entity implements Damageable{ public function saveNBT(){ parent::saveNBT(); - $this->namedtag->Health = new ShortTag("Health", $this->getHealth()); + $this->namedtag->Health = new FloatTag("Health", $this->getHealth()); } abstract public function getName();