This commit is contained in:
Shoghi Cervantes 2013-06-16 17:31:55 +02:00
parent d0a021de73
commit c136eb2b2e

View File

@ -1231,7 +1231,10 @@ class Player{
case MC_REQUEST_CHUNK:
break;
case MC_USE_ITEM:
if($this->spawned === false or $this->blocked === true){
if(!($this->entity instanceof Entity)){
break;
}
if(($this->spawned === false or $this->blocked === true) and $data["face"] >= 0 and $data["face"] <= 5){
$target = $this->level->getBlock(new Vector3($data["x"], $data["y"], $data["z"]));
$block = $target->getSide($data["face"]);
$this->dataPacket(MC_UPDATE_BLOCK, array(