mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 20:28:31 +00:00
Less BlockAPI::cancelAction lag, send only to the starter Player
This commit is contained in:
parent
845e48db66
commit
52aa57d400
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user