Players can put out fires

This commit is contained in:
Shoghi Cervantes
2013-06-09 15:14:30 +02:00
parent 1cc19ae1e8
commit cbe0692696
3 changed files with 6 additions and 2 deletions

View File

@@ -327,6 +327,9 @@ class BlockAPI{
if($item->isPlaceable()){
$hand = $item->getBlock();
$hand->position($block);
}elseif($block->getID() === FIRE){
$player->level->setBlock($block, new AirBlock());
return false;
}else{
return $this->cancelAction($block, $player, false);
}