mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fix formatting issues due to bad IDE settings
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
namespace pocketmine\network\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
#ifndef COMPILE
|
||||
use pocketmine\utils\Binary;
|
||||
|
@ -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{
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user