mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Fixed ghost armor
This commit is contained in:
parent
5237867319
commit
b776d9d5fc
1 changed files with 3 additions and 2 deletions
|
|
@ -1347,11 +1347,12 @@ class Player{
|
||||||
}
|
}
|
||||||
$this->craftingItems = array();
|
$this->craftingItems = array();
|
||||||
$this->toCraft = array();
|
$this->toCraft = array();
|
||||||
|
|
||||||
$data["eid"] = $this->eid;
|
$data["eid"] = $this->eid;
|
||||||
$data["player"] = $this;
|
$data["player"] = $this;
|
||||||
for($i = 0; $i < 4; ++$i){
|
for($i = 0; $i < 4; ++$i){
|
||||||
$s = $data["slot$i"];
|
$s = $data["slot$i"];
|
||||||
if($s === 0){
|
if($s === 0 or $s === 255){
|
||||||
$s = BlockAPI::getItem(AIR, 0, 0);
|
$s = BlockAPI::getItem(AIR, 0, 0);
|
||||||
}else{
|
}else{
|
||||||
$s = BlockAPI::getItem($s + 256, 0, 1);
|
$s = BlockAPI::getItem($s + 256, 0, 1);
|
||||||
|
|
@ -1368,7 +1369,7 @@ class Player{
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$this->server->handle("player.armor", $data);
|
$this->sendArmor();
|
||||||
if($this->entity->inAction === true){
|
if($this->entity->inAction === true){
|
||||||
$this->entity->inAction = false;
|
$this->entity->inAction = false;
|
||||||
$this->entity->updateMetadata();
|
$this->entity->updateMetadata();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue