Fixed UseItemPacket being able to be sent before spawning

This commit is contained in:
Shoghi Cervantes 2014-10-28 13:16:20 +01:00
parent 34ae760def
commit 5bf2174cad

View File

@ -1558,6 +1558,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
}
break;
case ProtocolInfo::USE_ITEM_PACKET:
if($this->spawned === false or $this->dead === true){
break;
}
$blockVector = Vector3::createVector($packet->x, $packet->y, $packet->z);
$this->craftingType = 0;