When using an explosion (TNT, explodeA(), etc.) it doesn鈥檛 drop every block it should.
There are no plugins loaded.
If the issue is not reproducible without plugins:
might be due to this https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/Explosion.php#L201
$air = ItemFactory::get(Item::AIR);
foreach($blocks as $block){
foreach($block->getDrops($air) as $drop){...}
}
@Muqsit, a temporary fix is changing getDrops to getDropsForCompatibleTool() which doesn鈥檛 completely fix it.
The problem here is that getDrops() requires a compatible tool. However circumventing the tool check is not a correct fix (this will cause tallgrass and other things to drop).
@dktapps why not add a new function like getSilkTouchDrops,
$block->getExplosionDrops()?
I would prefer not adding more methods for this if it can be reasonably avoided.
Most helpful comment
I would prefer not adding more methods for this if it can be reasonably avoided.