Added Liquid flow

This commit is contained in:
Shoghi Cervantes
2014-09-26 16:56:10 +02:00
parent 474091c013
commit 48bc919a33
4 changed files with 104 additions and 39 deletions

View File

@ -50,8 +50,8 @@ class Lava extends Liquid{
}
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
$ret = $this->getLevel()->setBlock($this, $this, true);
$this->getLevel()->scheduleUpdate(clone $this, 40);
$ret = $this->getLevel()->setBlock($this, $this, true, false);
$this->getLevel()->scheduleUpdate($this, $this->tickRate());
return $ret;
}