Skip to content

Commit 5100adb

Browse files
committed
Fix suckItem() not being called.
1 parent c437a49 commit 5100adb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public function onScheduledUpdate(): void {
5959
return;
6060
}
6161

62-
if ($this->ejectItem() || $this->suckItem()) $this->setTransferCooldown(8);
62+
$check = $this->ejectItem();
63+
$check |= $this->suckItem();
64+
if ($check) $this->setTransferCooldown(8);
6365
$this->writeStateToWorld();
6466
}
6567

0 commit comments

Comments
 (0)