mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Name update
This commit is contained in:
parent
5fab555c48
commit
5c17f77bcc
3 changed files with 7 additions and 21 deletions
|
|
@ -202,7 +202,7 @@ class BlockAPI{
|
|||
"z" => $pos->z + mt_rand(2, 8) / 10,
|
||||
"item" => $item,
|
||||
);
|
||||
if($this->server->api->handle("block.drop", $data) !== false){
|
||||
if($this->server->api->handle("item.drop", $data) !== false){
|
||||
for($count = $item->count; $count > 0; ){
|
||||
$item->count = min($item->getMaxStackSize(), $count);
|
||||
$count -= $item->count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue