Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2021-04-07 21:25:39 +01:00
29 changed files with 259 additions and 170 deletions

View File

@ -35,6 +35,7 @@ use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataProperties;
use pocketmine\network\mcpe\protocol\types\entity\FloatMetadataProperty;
use pocketmine\network\mcpe\protocol\types\entity\LongMetadataProperty;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper;
use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
use Ramsey\Uuid\Uuid;
use function str_repeat;
@ -100,7 +101,7 @@ class FloatingTextParticle implements Particle{
$pk->username = $name;
$pk->entityRuntimeId = $this->entityId;
$pk->position = $pos; //TODO: check offset
$pk->item = ItemStack::null();
$pk->item = ItemStackWrapper::legacy(ItemStack::null());
$flags = (
1 << EntityMetadataFlags::IMMOBILE