mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Continued cleanup of runtime entity NBT removal
it's no longer necessary to force-write these, since the NBT is now ephemeral. Any tag type mismatches should be dealt with on read, after which the original tag will be discarded anyway.
This commit is contained in:
@ -148,7 +148,7 @@ abstract class Living extends Entity implements Damageable{
|
||||
|
||||
public function saveNBT() : CompoundTag{
|
||||
$nbt = parent::saveNBT();
|
||||
$nbt->setFloat("Health", $this->getHealth(), true);
|
||||
$nbt->setFloat("Health", $this->getHealth());
|
||||
|
||||
if(count($this->effects) > 0){
|
||||
$effects = [];
|
||||
|
Reference in New Issue
Block a user