From f57e02849a54670f1ec80d1319310a89de2370f4 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 25 Jun 2022 16:01:11 +0100 Subject: [PATCH] Wall: move function for consistency --- src/block/Wall.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/block/Wall.php b/src/block/Wall.php index ed3325a34..a97aba751 100644 --- a/src/block/Wall.php +++ b/src/block/Wall.php @@ -53,12 +53,6 @@ class Wall extends Transparent{ $w->writeBool($this->post); } - public function onNearbyBlockChange() : void{ - if($this->recalculateConnections()){ - $this->position->getWorld()->setBlock($this->position, $this); - } - } - /** * @return WallConnectionType[] * @phpstan-return WallConnectionSet @@ -100,6 +94,12 @@ class Wall extends Transparent{ return $this; } + public function onNearbyBlockChange() : void{ + if($this->recalculateConnections()){ + $this->position->getWorld()->setBlock($this->position, $this); + } + } + protected function recalculateConnections() : bool{ $changed = 0;