mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added item pickup delay
This commit is contained in:
parent
08b67428a0
commit
5096cdcde8
2 changed files with 4 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ class BlockAPI{
|
|||
$amount = (int) $params[2];
|
||||
}
|
||||
if(isset($params[3])){
|
||||
$meta = (int) $params[3];
|
||||
$meta = ((int) $params[3]) & 0xFFFF;
|
||||
}
|
||||
if(($player = $this->server->api->player->get($username)) !== false){
|
||||
$this->drop($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5, $block, $meta, $amount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue