From 12087c9850e607690ba0e960cc9f7ea8b54231c3 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 26 Sep 2020 17:41:00 +0100 Subject: [PATCH] Wall: use facing as value as well as key in connections --- src/block/Wall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block/Wall.php b/src/block/Wall.php index 073a6a2702..462835e0b4 100644 --- a/src/block/Wall.php +++ b/src/block/Wall.php @@ -29,7 +29,7 @@ use pocketmine\math\Facing; class Wall extends Transparent{ - /** @var bool[] facing => dummy */ + /** @var int[] facing => facing */ protected $connections = []; /** @var bool */ protected $up = false; @@ -44,7 +44,7 @@ class Wall extends Transparent{ foreach(Facing::HORIZONTAL as $facing){ $block = $this->getSide($facing); if($block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent())){ - $this->connections[$facing] = true; + $this->connections[$facing] = $facing; }else{ unset($this->connections[$facing]); }