diff --git a/src/classes/Player.php b/src/classes/Player.php index ac8980046..e196e1833 100644 --- a/src/classes/Player.php +++ b/src/classes/Player.php @@ -429,7 +429,7 @@ class Player{ $this->eventHandler("Your connection is bad, you may experience lag and slow map loading.", "server.chat"); } foreach($this->inventory as $s => $data){ - if($data[0] >= 0 or $data[2] >= 0){ + if($data[0] > 0 and $data[2] >= 0){ $e = $this->server->api->entity->add(ENTITY_ITEM, $data[0], array( "x" => $this->entity->x + 0.5, "y" => $this->entity->y + 0.19, diff --git a/src/classes/world/Entity.php b/src/classes/world/Entity.php index e9e6b9fd2..e0bcb5286 100644 --- a/src/classes/world/Entity.php +++ b/src/classes/world/Entity.php @@ -33,7 +33,7 @@ define("ENTITY_ITEM", 3); define("ENTITY_PAINTING", 4); class Entity extends stdClass{ - var $invincible, $dmgcounter, $eid, $type, $name, $x, $y, $z, $speedX, $speedY, $speedZ, $speed, $last = array(0, 0, 0, 0), $yaw, $pitch, $dead, $data, $class, $attach, $metadata, $closed, $player, $onTick; + var $invincible, $air, $dmgcounter, $eid, $type, $name, $x, $y, $z, $speedX, $speedY, $speedZ, $speed, $last = array(0, 0, 0, 0), $yaw, $pitch, $dead, $data, $class, $attach, $metadata, $closed, $player, $onTick; private $server; function __construct($server, $eid, $class, $type = 0, $data = array()){ $this->server = $server;