Fixed connection requirements for fences, glass, bars and walls

these connect to the back faces of stairs and to glass, for example.
This commit is contained in:
Dylan K. Taylor
2023-09-06 12:56:47 +01:00
parent 79acc4fed4
commit fe94379a93
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ class Wall extends Transparent{
foreach(Facing::HORIZONTAL as $facing){
$block = $this->getSide($facing);
if($block instanceof static || $block instanceof FenceGate || $block instanceof Thin || ($block->isSolid() && !$block->isTransparent())){
if($block instanceof static || $block instanceof FenceGate || $block instanceof Thin || $block->getSupportType(Facing::opposite($facing))->equals(SupportType::FULL())){
if(!isset($this->connections[$facing])){
$this->connections[$facing] = WallConnectionType::SHORT();
$changed++;