Assemble 1.21.40 (#6471)

This commit is contained in:
Dries C
2024-10-25 15:21:51 +02:00
committed by GitHub
parent f1b1a7022d
commit 4814db4fe7
15 changed files with 107 additions and 95 deletions

View File

@ -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{