mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49: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
|
if($id == CARPET || $id == SNOW_LAYER || $id == RAIL || $id == POWERED_RAIL) return false; //TODO Tile::getThickness() > 0
|
||||||
|
|
||||||
//TODO materials
|
$mat = StaticBlock::getMaterial($id);
|
||||||
//if(!StaticBlock::getIsFlowable($id)) return true;
|
if($mat->blocksMotion) return true;
|
||||||
return StaticBlock::getIsSolid($id);
|
return $mat->isSolid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function canSpreadTo(Level $level, $x, $y, $z){
|
public static function canSpreadTo(Level $level, $x, $y, $z){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue