mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -173,7 +173,7 @@ class Explosion{
|
||||
$block->ignite(mt_rand(10, 30));
|
||||
}elseif(mt_rand(0, 100) < $yield){
|
||||
foreach($block->getDrops($air) as $drop){
|
||||
$this->level->dropItem($block->add(0.5, 0.5, 0.5), Item::get(...$drop));
|
||||
$this->level->dropItem($block->add(0.5, 0.5, 0.5), $drop);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user