mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
...
This commit is contained in:
parent
09904dc519
commit
d5919dc094
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user