mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Assemble 1.21.40 (#6471)
This commit is contained in:
@ -502,7 +502,7 @@ class InventoryManager{
|
||||
$windowId,
|
||||
$netSlot,
|
||||
new FullContainerName($this->lastInventoryNetworkId),
|
||||
0,
|
||||
new ItemStackWrapper(0, ItemStack::null()),
|
||||
new ItemStackWrapper(0, ItemStack::null())
|
||||
));
|
||||
}
|
||||
@ -511,7 +511,7 @@ class InventoryManager{
|
||||
$windowId,
|
||||
$netSlot,
|
||||
new FullContainerName($this->lastInventoryNetworkId),
|
||||
0,
|
||||
new ItemStackWrapper(0, ItemStack::null()),
|
||||
$itemStackWrapper
|
||||
));
|
||||
}
|
||||
@ -532,10 +532,10 @@ class InventoryManager{
|
||||
$windowId,
|
||||
array_fill_keys(array_keys($itemStackWrappers), new ItemStackWrapper(0, ItemStack::null())),
|
||||
new FullContainerName($this->lastInventoryNetworkId),
|
||||
0
|
||||
new ItemStackWrapper(0, ItemStack::null())
|
||||
));
|
||||
//now send the real contents
|
||||
$this->session->sendDataPacket(InventoryContentPacket::create($windowId, $itemStackWrappers, new FullContainerName($this->lastInventoryNetworkId), 0));
|
||||
$this->session->sendDataPacket(InventoryContentPacket::create($windowId, $itemStackWrappers, new FullContainerName($this->lastInventoryNetworkId), new ItemStackWrapper(0, ItemStack::null())));
|
||||
}
|
||||
|
||||
public function syncSlot(Inventory $inventory, int $slot, ItemStack $itemStack) : void{
|
||||
|
Reference in New Issue
Block a user