mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Player: move sendAllInventories() to network layer
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user