Fix formatting issues due to bad IDE settings

This commit is contained in:
Shoghi Cervantes
2014-12-07 16:30:04 +01:00
parent bb82e7be50
commit 747f7685e7
191 changed files with 1315 additions and 1304 deletions

View File

@ -103,7 +103,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
private $upload = 0;
private $download = 0;
private $internalThreaded;
private $externalThreaded;
@ -113,7 +113,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
$this->server = $server;
$this->identifiers = new \SplObjectStorage();
$this->internalThreaded = new \Threaded();
$this->externalThreaded = new \Threaded();
@ -180,11 +180,11 @@ class RakLibInterface implements ServerInstance, SourceInterface{
$pk = $this->getPacket($packet->buffer);
$pk->decode();
$this->players[$identifier]->handleDataPacket($pk);
}catch (\Exception $e){
}catch(\Exception $e){
if(\pocketmine\DEBUG > 1){
$logger = $this->server->getLogger();
if($logger instanceof MainLogger){
$logger->debug("Packet ".get_class($pk)." 0x".bin2hex($packet->buffer));
$logger->debug("Packet " . get_class($pk) . " 0x" . bin2hex($packet->buffer));
$logger->logException($e);
}
}

View File

@ -21,10 +21,11 @@
namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class AddMobPacket extends DataPacket{

View File

@ -21,10 +21,11 @@
namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class AddPlayerPacket extends DataPacket{

View File

@ -21,7 +21,7 @@
namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;

View File

@ -21,10 +21,11 @@
namespace pocketmine\network\protocol;
#include <rules/DataPacket.h>
#include <rules/DataPacket.h>
#ifndef COMPILE
use pocketmine\utils\Binary;
#endif
class SetEntityDataPacket extends DataPacket{

View File

@ -109,7 +109,7 @@ class RCONInstance extends \Thread{
}
for($n = 0; $n < $this->maxClients; ++$n){
$client = & $this->{"client" . $n};
$client = &$this->{"client" . $n};
if($client !== null){
if($this->{"status" . $n} !== -1 and $this->stop !== true){
if($this->{"status" . $n} === 0 and $this->{"timeout" . $n} < microtime(true)){ //Timeout