mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Updated for Minecraft: PE 0.7.2
This commit is contained in:
parent
03b4e40bf4
commit
1727e18e31
6 changed files with 21 additions and 6 deletions
|
|
@ -454,7 +454,8 @@ class Player{
|
|||
case "player.armor":
|
||||
if($data["player"]->level === $this->level){
|
||||
if($data["eid"] === $this->eid){
|
||||
$data["eid"] = 0;
|
||||
$this->sendArmor($this);
|
||||
break;
|
||||
}
|
||||
$this->dataPacket(MC_PLAYER_ARMOR_EQUIPMENT, $data);
|
||||
}
|
||||
|
|
@ -1709,7 +1710,15 @@ class Player{
|
|||
}
|
||||
}
|
||||
if($player instanceof Player){
|
||||
$player->dataPacket(MC_PLAYER_ARMOR_EQUIPMENT, $data);
|
||||
if($player === $this){
|
||||
$this->dataPacket(MC_CONTAINER_SET_CONTENT, array(
|
||||
"windowid" => 0x78,
|
||||
"count" => 4,
|
||||
"slots" => $this->armor,
|
||||
));
|
||||
}else{
|
||||
$player->dataPacket(MC_PLAYER_ARMOR_EQUIPMENT, $data);
|
||||
}
|
||||
}else{
|
||||
$this->server->api->dhandle("player.armor", $data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue