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){
$this->server->api->dhandle("block.change", array(
$player->dataPacket(MC_UPDATE_BLOCK, array(
"x" => $block->x,
"y" => $block->y,
"z" => $block->z,
"block" => $block->getID(),
"meta" => $block->getMetadata(),
"fake" => true,
"meta" => $block->getMetadata()
));
return false;
}