mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
isWaterBlocking uses block materials now
This commit is contained in:
parent
359f1d34c9
commit
fd5b103df7
1 changed files with 3 additions and 3 deletions
|
|
@ -33,9 +33,9 @@ class LiquidBlockDynamic extends LiquidBlock{
|
|||
|
||||
if($id == CARPET || $id == SNOW_LAYER || $id == RAIL || $id == POWERED_RAIL) return false; //TODO Tile::getThickness() > 0
|
||||
|
||||
//TODO materials
|
||||
//if(!StaticBlock::getIsFlowable($id)) return true;
|
||||
return StaticBlock::getIsSolid($id);
|
||||
$mat = StaticBlock::getMaterial($id);
|
||||
if($mat->blocksMotion) return true;
|
||||
return $mat->isSolid;
|
||||
}
|
||||
|
||||
public static function canSpreadTo(Level $level, $x, $y, $z){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue