Fixed #1911 Implemented FurnaceInventory callback

This commit is contained in:
Shoghi Cervantes 2014-08-26 00:03:16 +02:00
parent ea9fc3c72e
commit 69800c6d79
2 changed files with 7 additions and 1 deletions

View File

@ -330,6 +330,11 @@ abstract class BaseInventory implements Inventory{
}
}
/**
* @param Player $source
*
* @return Player[]
*/
public function getViewers($source = null){
$viewers = [];
foreach($this->viewers as $viewer){

View File

@ -87,6 +87,7 @@ class FurnaceInventory extends ContainerInventory{
public function onSlotChange($index, $before, $source = null){
parent::onSlotChange($index, $before, $source);
//TODO: implement Furnace scheduled update
$this->getHolder()->scheduleUpdate();
}
}