mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Sand now falls through Liquids when placed just on top of them
This commit is contained in:
parent
b72d4ac407
commit
15ab47070a
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user