Fixed trying to save health as a ShortTag, close #1039

This commit is contained in:
Dylan K. Taylor 2017-06-09 09:11:02 +01:00
parent a302b4988f
commit eac756470a

View File

@ -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();