mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
BrewingStand: added missing void return type
This commit is contained in:
parent
35c23ea89a
commit
42014311c5
@ -54,7 +54,7 @@ class BrewingStand extends Spawnable implements Container, Nameable{
|
|||||||
public function __construct(World $world, Vector3 $pos){
|
public function __construct(World $world, Vector3 $pos){
|
||||||
parent::__construct($world, $pos);
|
parent::__construct($world, $pos);
|
||||||
$this->inventory = new BrewingStandInventory($this->pos);
|
$this->inventory = new BrewingStandInventory($this->pos);
|
||||||
$this->inventory->addChangeListeners(CallbackInventoryChangeListener::onAnyChange(function(Inventory $unused){
|
$this->inventory->addChangeListeners(CallbackInventoryChangeListener::onAnyChange(function(Inventory $unused) : void{
|
||||||
$this->pos->getWorld()->scheduleDelayedBlockUpdate($this->pos, 1);
|
$this->pos->getWorld()->scheduleDelayedBlockUpdate($this->pos, 1);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user