Less BlockAPI::cancelAction lag, send only to the starter Player

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-05 17:19:18 +01:00
parent 845e48db66
commit 52aa57d400

View File

@ -143,13 +143,12 @@ class BlockAPI{
} }
private function cancelAction(Block $block, Player $player){ private function cancelAction(Block $block, Player $player){
$this->server->api->dhandle("block.change", array( $player->dataPacket(MC_UPDATE_BLOCK, array(
"x" => $block->x, "x" => $block->x,
"y" => $block->y, "y" => $block->y,
"z" => $block->z, "z" => $block->z,
"block" => $block->getID(), "block" => $block->getID(),
"meta" => $block->getMetadata(), "meta" => $block->getMetadata()
"fake" => true,
)); ));
return false; return false;
} }