mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Drop in the correct position
This commit is contained in:
parent
8253d63d9b
commit
1c63448c6c
@ -778,7 +778,7 @@ class Player{
|
|||||||
$data["item"] = $item;
|
$data["item"] = $item;
|
||||||
if($this->server->handle("player.drop", $data) !== false){
|
if($this->server->handle("player.drop", $data) !== false){
|
||||||
$this->removeItem($item->getID(), $item->getMetadata(), $item->count);
|
$this->removeItem($item->getID(), $item->getMetadata(), $item->count);
|
||||||
$this->server->api->block->drop(new Vector3($this->entity->x, $this->entity->y, $this->entity->z), $item);
|
$this->server->api->block->drop(new Vector3($this->entity->x - 0.5, $this->entity->y, $this->entity->z - 0.5), $item);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MC_SIGN_UPDATE:
|
case MC_SIGN_UPDATE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user