Sand now falls through Liquids when placed just on top of them

This commit is contained in:
Shoghi Cervantes 2013-06-02 11:34:02 +02:00
parent b72d4ac407
commit 15ab47070a

View File

@ -44,7 +44,8 @@ class GenericBlock extends Block{
public function onUpdate($type){ public function onUpdate($type){
if($this->hasPhysics === true){ if($this->hasPhysics === true){
if($this->getSide(0)->getID() === AIR){ $down = $this->getSide(0);
if($down->getID() === AIR or ($down instanceof LiquidBlock)){
$data = array( $data = array(
"x" => $this->x + 0.5, "x" => $this->x + 0.5,
"y" => $this->y + 0.5, "y" => $this->y + 0.5,