mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Fixed #1911 Implemented FurnaceInventory callback
This commit is contained in:
parent
ea9fc3c72e
commit
69800c6d79
@ -330,6 +330,11 @@ abstract class BaseInventory implements Inventory{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Player $source
|
||||||
|
*
|
||||||
|
* @return Player[]
|
||||||
|
*/
|
||||||
public function getViewers($source = null){
|
public function getViewers($source = null){
|
||||||
$viewers = [];
|
$viewers = [];
|
||||||
foreach($this->viewers as $viewer){
|
foreach($this->viewers as $viewer){
|
||||||
|
@ -87,6 +87,7 @@ class FurnaceInventory extends ContainerInventory{
|
|||||||
|
|
||||||
public function onSlotChange($index, $before, $source = null){
|
public function onSlotChange($index, $before, $source = null){
|
||||||
parent::onSlotChange($index, $before, $source);
|
parent::onSlotChange($index, $before, $source);
|
||||||
//TODO: implement Furnace scheduled update
|
|
||||||
|
$this->getHolder()->scheduleUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user