mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +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
|
|
@ -229,7 +229,7 @@ class BlockAPI{
|
|||
break;
|
||||
}
|
||||
if($this->server->api->getProperty("item-enforcement") === false){
|
||||
$this->drop(new Vector3($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5), $item, true);
|
||||
$this->server->api->entity->drop(new Position($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5, $player->level), $item, true);
|
||||
}else{
|
||||
$player->addItem($item->getID(), $item->getMetadata(), $item->count);
|
||||
}
|
||||
|
|
@ -781,4 +781,4 @@ class BlockAPI{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue