mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed ghost armor
This commit is contained in:
parent
5237867319
commit
b776d9d5fc
@ -1347,11 +1347,12 @@ class Player{
|
||||
}
|
||||
$this->craftingItems = array();
|
||||
$this->toCraft = array();
|
||||
|
||||
$data["eid"] = $this->eid;
|
||||
$data["player"] = $this;
|
||||
for($i = 0; $i < 4; ++$i){
|
||||
$s = $data["slot$i"];
|
||||
if($s === 0){
|
||||
if($s === 0 or $s === 255){
|
||||
$s = BlockAPI::getItem(AIR, 0, 0);
|
||||
}else{
|
||||
$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){
|
||||
$this->entity->inAction = false;
|
||||
$this->entity->updateMetadata();
|
||||
|
Loading…
x
Reference in New Issue
Block a user