mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
...
This commit is contained in:
@ -158,7 +158,7 @@ abstract class Living extends Entity{
|
||||
}
|
||||
};
|
||||
$this->armorInventory->getListeners()->add(new CallbackInventoryListener(
|
||||
function(Inventory $inventory, int $slot, Item $oldItem) : void{
|
||||
function(Inventory $inventory, int $slot, Item $oldItem) use ($playArmorSound) : void{
|
||||
$playArmorSound($inventory->getItem($slot), $oldItem);
|
||||
},
|
||||
function(Inventory $inventory, array $oldContents) use ($playArmorSound) : void{
|
||||
|
Reference in New Issue
Block a user