ItemEntity: don't ignore parent's savable state

This commit is contained in:
Dylan K. Taylor 2022-09-20 14:50:35 +01:00
parent 5bc7ca6569
commit 23e98a30f5
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -187,7 +187,7 @@ class ItemEntity extends Entity{
}
public function canSaveWithChunk() : bool{
return !$this->item->isNull();
return !$this->item->isNull() && parent::canSaveWithChunk();
}
public function saveNBT() : CompoundTag{