Player: move sendAllInventories() to network layer

This commit is contained in:
Dylan K. Taylor
2019-05-26 15:58:03 +01:00
parent 85718e2750
commit 33d1203bfd
4 changed files with 16 additions and 9 deletions

View File

@ -819,6 +819,12 @@ class NetworkSession{
}
}
public function syncAllInventoryContents() : void{
foreach($this->player->getAllWindows() as $inventory){
$this->syncInventoryContents($inventory);
}
}
public function syncInventoryData(Inventory $inventory, int $propertyId, int $value) : void{
$windowId = $this->player->getWindowId($inventory);
if($windowId !== ContainerIds::NONE){