Fix for not-placing action blocks

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-29 13:58:33 +01:00
parent 473f5ec01e
commit 3ab149cf58

View File

@ -258,10 +258,7 @@ class BlockAPI{
}
if($cancelPlace === true){
$this->cancelAction($target);
BlockFace::setPosition($data, $data["face"]);
$target = $this->server->api->level->getBlock($data["x"], $data["y"], $data["z"]);
return $this->cancelAction($target);
return false;
}
$replace = false;