Skip to content

Commit af710f2

Browse files
committed
Fixed redstone update not occurring when piston push blocks. #90
1 parent f0887a8 commit af710f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tedo0627/redstonecircuit/block/mechanism/BlockPiston.php

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ private function push(): bool {
160160
if ($moving instanceof BlockMoving) $moving->setMovingBlock($block, $tile);
161161
$world->setBlock($side->getPosition(), $moving);
162162
$world->setBlock($block->getPosition(), VanillaBlocks::AIR());
163+
BlockUpdateHelper::updateAroundRedstone($block);
163164
}
164165
$this->setState(1);
165166
$side = $this->getSide($face);
@@ -239,6 +240,7 @@ private function pull(): bool {
239240
if ($moving instanceof BlockMoving) $moving->setMovingBlock($block, $tile);
240241
$world->setBlock($side->getPosition(), $moving);
241242
$world->setBlock($block->getPosition(), VanillaBlocks::AIR());
243+
BlockUpdateHelper::updateAroundRedstone($block);
242244
}
243245
$this->setState(3);
244246
} else if ($state === 3) {

0 commit comments

Comments
 (0)