Fixed block updates not getting broadcasted

This commit is contained in:
Shoghi Cervantes
2014-06-22 21:56:58 +02:00
parent 0e36107878
commit 0be2bd911f
5 changed files with 35 additions and 7 deletions

View File

@ -23,6 +23,7 @@ namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\level\generator\object\TallGrass;
use pocketmine\level\Level;
use pocketmine\Player;
use pocketmine\utils\Random;
@ -39,6 +40,10 @@ class Grass extends Solid{
);
}
public function onUpdate($type){
}
public function onActivate(Item $item, Player $player = null){
if($item->getID() === Item::DYE and $item->getDamage() === 0x0F){
$item->count--;