mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Improved Explosion item drop position
This commit is contained in:
parent
e3e97a4205
commit
30c3718ea8
@ -205,7 +205,7 @@ class Explosion{
|
||||
$tnt->spawnToAll();
|
||||
}elseif(mt_rand(0, 100) < $yield){
|
||||
foreach($block->getDrops($air) as $drop){
|
||||
$this->level->dropItem($block, Item::get(...$drop));
|
||||
$this->level->dropItem($block->add(0.5, 0.5, 0.5), Item::get(...$drop));
|
||||
}
|
||||
}
|
||||
$this->level->setBlockIdAt($block->x, $block->y, $block->z, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user