Added a few things

This commit is contained in:
Shoghi Cervantes
2014-04-08 13:00:36 +02:00
parent 8d14c98da9
commit 89138ae4ce
4 changed files with 7 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class Grass extends Solid{
public function onActivate(Item $item, Player $player = null){
if($item->getID() === Item::DYE and $item->getMetadata() === 0x0F){
$item->count--;
TallGrass::growGrass($this->level, $this, new Random(), 8, 2);
TallGrass::growGrass($this->level, $this, new Random(mt_rand()), 8, 2);
return true;
}elseif($item->isHoe()){