mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
changed item type from item id to 64
This commit is contained in:
parent
eab6573b84
commit
5208611d38
8 changed files with 24 additions and 19 deletions
|
|
@ -65,9 +65,10 @@ class LevelAPI{
|
|||
$entity["pitch"] = $entity["Rotation"][1];
|
||||
|
||||
if($entity["id"] === 64){ //Item Drop
|
||||
$e = $this->server->api->entity->add($this->levels[$name], ENTITY_ITEM, $entity["Item"]["id"], [
|
||||
$e = $this->server->api->entity->add($this->levels[$name], ENTITY_ITEM, ENTITY_ITEM_TYPE, [
|
||||
"meta" => $entity["Item"]["Damage"],
|
||||
"stack" => $entity["Item"]["Count"],
|
||||
"itemID" => $entity["Item"]["id"],
|
||||
"x" => $entity["Pos"][0],
|
||||
"y" => $entity["Pos"][1],
|
||||
"z" => $entity["Pos"][2],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue