mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +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){
|
||||
$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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user