We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93147e5 commit 28b2044Copy full SHA for 28b2044
src/tedo0627/redstonecircuit/block/mechanism/BlockHopper.php
@@ -229,11 +229,8 @@ protected function suckEntity(): bool {
229
}
230
231
$inventory->addItem($pop);
232
- if ($source->getCount() === 0) {
233
- $entity->flagForDespawn();
234
- } else {
235
- $entity->getItem()->pop($count);
236
- }
+ $entity->getItem()->pop($count);
+ if ($source->getCount() === 0) $entity->flagForDespawn();
237
$check = true;
238
239
return $check;
0 commit comments