From 15ab47070a8978fbb17015f52cc7dae948028b9c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 2 Jun 2013 11:34:02 +0200 Subject: [PATCH] Sand now falls through Liquids when placed just on top of them --- src/material/block/GenericBlock.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/material/block/GenericBlock.php b/src/material/block/GenericBlock.php index 6b85406b48..fa9099968f 100644 --- a/src/material/block/GenericBlock.php +++ b/src/material/block/GenericBlock.php @@ -44,7 +44,8 @@ class GenericBlock extends Block{ public function onUpdate($type){ if($this->hasPhysics === true){ - if($this->getSide(0)->getID() === AIR){ + $down = $this->getSide(0); + if($down->getID() === AIR or ($down instanceof LiquidBlock)){ $data = array( "x" => $this->x + 0.5, "y" => $this->y + 0.5,