mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Less BlockAPI::cancelAction lag, send only to the starter Player
This commit is contained in:
parent
845e48db66
commit
52aa57d400
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue