From 52aa57d40069c850631fa0aa0d3d83be5a3c28d3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 5 Mar 2013 17:19:18 +0100 Subject: [PATCH] Less BlockAPI::cancelAction lag, send only to the starter Player --- src/API/BlockAPI.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index e977ca843..755e289fe 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -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; }