Skip to content

Commit 28b2044

Browse files
committed
Fix hopper duplication #103
1 parent 93147e5 commit 28b2044

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,8 @@ protected function suckEntity(): bool {
229229
}
230230

231231
$inventory->addItem($pop);
232-
if ($source->getCount() === 0) {
233-
$entity->flagForDespawn();
234-
} else {
235-
$entity->getItem()->pop($count);
236-
}
232+
$entity->getItem()->pop($count);
233+
if ($source->getCount() === 0) $entity->flagForDespawn();
237234
$check = true;
238235
}
239236
return $check;

0 commit comments

Comments
 (0)