mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Updated the BlockAPI::drop method
This commit is contained in:
parent
326864f889
commit
287fa7e551
6 changed files with 27 additions and 28 deletions
|
|
@ -747,7 +747,7 @@ class Player{
|
|||
break;
|
||||
}
|
||||
if($this->server->handle("player.drop", $data) !== false){
|
||||
$this->server->api->block->drop($this->entity->x, $this->entity->y, $this->entity->z, $data["block"], $data["meta"], $data["stack"]);
|
||||
$this->server->api->block->drop(new Vector3($this->entity->x, $this->entity->y, $this->entity->z), BlockAPI::getItem($data["block"], $data["meta"], $data["stack"]));
|
||||
}
|
||||
break;
|
||||
case MC_SIGN_UPDATE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue