mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed a few missing methods due to multiworld conversion
This commit is contained in:
parent
7bbda6dd67
commit
4678b57c75
3 changed files with 5 additions and 5 deletions
|
|
@ -1184,7 +1184,7 @@ class Player{
|
|||
$data["item"] = $item;
|
||||
if($this->blocked === false and $this->server->handle("player.drop", $data) !== false){
|
||||
if($this->removeItem($item->getID(), $item->getMetadata(), $item->count) === true or $this->itemEnforcement !== true){
|
||||
$this->server->api->block->drop(new Vector3($this->entity->x - 0.5, $this->entity->y, $this->entity->z - 0.5), $item);
|
||||
$this->server->api->entity->drop(new Position($this->entity->x - 0.5, $this->entity->y, $this->entity->z - 0.5, $this->level), $item);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue