mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed trying to save health as a ShortTag, close #1039
This commit is contained in:
parent
a302b4988f
commit
eac756470a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user