mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59: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
|
|
@ -760,9 +760,9 @@ class Player{
|
|||
$pk->target = $data["entity"]->eid;
|
||||
$this->dataPacket($pk);
|
||||
if(($this->gamemode & 0x01) === 0x00){
|
||||
$this->addItem($data["entity"]->type, $data["entity"]->meta, $data["entity"]->stack, false);
|
||||
$this->addItem($data["entity"]->itemID, $data["entity"]->meta, $data["entity"]->stack, false);
|
||||
}
|
||||
switch($data["entity"]->type){
|
||||
switch($data["entity"]->itemID){
|
||||
case WOOD:
|
||||
AchievementAPI::grantAchievement($this, "mineWood");
|
||||
break;
|
||||
|
|
@ -2074,7 +2074,6 @@ class Player{
|
|||
$sX += cos($f3) * $f1;
|
||||
$sY += ($this->entity->random->nextFloat() - $this->entity->random->nextFloat()) * 0.1;
|
||||
$sZ += sin($f3) * $f1;
|
||||
|
||||
$this->server->api->entity->dropRawPos(new Position($this->entity->x, $this->entity->y - 0.3 + $this->entity->height - 0.12, $this->entity->z, $this->level), $packet->item, $sX, $sY, $sZ);
|
||||
$this->setSlot($this->slot, BlockAPI::getItem(AIR, 0, 0), false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue