mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Replace Closure::fromCallable() usages with first-class callables
PHP 8.1 <3
This commit is contained in:
@ -108,7 +108,7 @@ class InventoryManager{
|
||||
private NetworkSession $session
|
||||
){
|
||||
$this->containerOpenCallbacks = new ObjectSet();
|
||||
$this->containerOpenCallbacks->add(\Closure::fromCallable([self::class, 'createContainerOpen']));
|
||||
$this->containerOpenCallbacks->add(self::createContainerOpen(...));
|
||||
|
||||
$this->add(ContainerIds::INVENTORY, $this->player->getInventory());
|
||||
$this->add(ContainerIds::OFFHAND, $this->player->getOffHandInventory());
|
||||
|
Reference in New Issue
Block a user