mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Sand now falls through Liquids when placed just on top of them
This commit is contained in:
parent
b72d4ac407
commit
15ab47070a
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue