From b776d9d5fcd8c683a3c9df0241f24fb770734618 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 4 Jul 2013 22:01:28 +0200 Subject: [PATCH] Fixed ghost armor --- src/Player.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index 7e79e2fc..8a6f0498 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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();