mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Correct item drop related to explosion power
This commit is contained in:
parent
2271d0b6fc
commit
f56dd60708
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ class Explosion{
|
|||
$server->api->entity->spawnToAll($e);
|
||||
}
|
||||
$send[] = new Vector3($block->x - $source->x, $block->y - $source->y, $block->z - $source->z);
|
||||
if(mt_rand(0, 100) < 30){
|
||||
if(mt_rand(0, 10000) < ((1/$this->size) * 10000)){
|
||||
$server->api->entity->drop(new Position($block->x + 0.5, $block->y, $block->z + 0.5, $this->level), BlockAPI::getItem($block->getID(), $block->getMetadata()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue