PMF & Multiworld [part 2]

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-14 19:25:55 +02:00
parent 9b212ae034
commit 5938747083
39 changed files with 239 additions and 301 deletions

View file

@ -31,9 +31,9 @@ class DirtBlock extends SolidBlock{
$this->isActivable = true;
}
public function onActivate(BlockAPI $level, Item $item, Player $player){
public function onActivate(Item $item, Player $player){
if($item->isHoe()){
$level->setBlock($this, FARMLAND, 0);
$this->level->setBlock($this, BlockAPI::get(FARMLAND, 0));
return true;
}
return false;