Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Jun 30, 2014
1 parent 3af5d70 commit 267e842
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/shoghicp/BigBrother/network/translation/Translator_16.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,6 @@ public function interfaceToServer(DesktopPlayer $player, Packet $packet){
return null;

case 0x08; //PlayerBlockPlacementPacket

$target = $player->getLevel()->getBlock(new Vector3($packet->x, $packet->y, $packet->z));
$block = $target->getSide($packet->direction);

$pk = new UpdateBlockPacket;
$pk->x = $target->x;
$pk->y = $target->y;
$pk->z = $target->z;
$pk->block = $target->getID();
$pk->meta = $target->getDamage();
$player->dataPacket($pk);

$pk = new UpdateBlockPacket;
$pk->x = $block->x;
$pk->y = $block->y;
$pk->z = $block->z;
$pk->block = $block->getID();
$pk->meta = $block->getDamage();
$player->dataPacket($pk);
break;
//TODO
$pk = new UseItemPacket();
$pk->x = $packet->x;
$pk->y = $packet->y;
Expand All @@ -133,8 +112,6 @@ public function interfaceToServer(DesktopPlayer $player, Packet $packet){
default:
return null;
}

return null;
}

public function serverToInterface(DesktopPlayer $player, DataPacket $packet){
Expand Down

0 comments on commit 267e842

Please sign in to comment.