mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed trying to save health as a ShortTag, close #1039
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user