Skip to content

Commit

Permalink
Use null itemstack
Browse files Browse the repository at this point in the history
dries-c committed Aug 13, 2024
1 parent 5e7605b commit 0e78556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/network/mcpe/StandardEntityEventBroadcaster.php
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@
use pocketmine\network\mcpe\protocol\types\entity\Attribute as NetworkAttribute;
use pocketmine\network\mcpe\protocol\types\entity\PropertySyncData;
use pocketmine\network\mcpe\protocol\types\inventory\ContainerIds;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper;
use pocketmine\network\mcpe\protocol\UpdateAttributesPacket;
use function array_map;
@@ -133,7 +134,7 @@ public function onMobArmorChange(array $recipients, Living $mob) : void{
ItemStackWrapper::legacy($converter->coreItemStackToNet($inv->getChestplate())),
ItemStackWrapper::legacy($converter->coreItemStackToNet($inv->getLeggings())),
ItemStackWrapper::legacy($converter->coreItemStackToNet($inv->getBoots())),
ItemStackWrapper::legacy($converter->coreItemStackToNet(VanillaItems::AIR()))
new ItemStackWrapper(0, ItemStack::null())
));
}

0 comments on commit 0e78556

Please sign in to comment.