This commit is contained in:
Shoghi Cervantes 2013-06-08 12:51:28 +02:00
parent 883b18078f
commit 97dd718e4f
3 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ class DirtBlock extends SolidBlock{
public function onActivate(Item $item, Player $player){
if($item->isHoe()){
if(($this->gamemode & 0x01) === 0){
if(($player->gamemode & 0x01) === 0){
$item->useOn($this);
}
$this->level->setBlock($this, BlockAPI::get(FARMLAND, 0));