diff --git a/src/pocketmine/command/CommandReader.php b/src/pocketmine/command/CommandReader.php index 920dd7f5b..560c7b96d 100644 --- a/src/pocketmine/command/CommandReader.php +++ b/src/pocketmine/command/CommandReader.php @@ -86,7 +86,7 @@ class CommandReader extends Thread{ if(($line = $this->readLine()) !== ""){ $this->buffer->synchronized(function (\Threaded $buffer, $line){ $buffer[] = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", $line); - }, $this->buffer, $line); + }, $this->buffer, $line ); }elseif((microtime(true) - $lastLine) <= 0.1){ //Non blocking! Sleep to save CPU usleep(40000); } diff --git a/src/pocketmine/network/protocol/AddMobPacket.php b/src/pocketmine/network/protocol/AddMobPacket.php index 2a11b64d6..a5ff3b81f 100644 --- a/src/pocketmine/network/protocol/AddMobPacket.php +++ b/src/pocketmine/network/protocol/AddMobPacket.php @@ -21,7 +21,7 @@ namespace pocketmine\network\protocol; - #include +#include #ifndef COMPILE use pocketmine\utils\Binary; diff --git a/src/pocketmine/network/protocol/AddPlayerPacket.php b/src/pocketmine/network/protocol/AddPlayerPacket.php index 7f168b7a7..5df4fa714 100644 --- a/src/pocketmine/network/protocol/AddPlayerPacket.php +++ b/src/pocketmine/network/protocol/AddPlayerPacket.php @@ -21,7 +21,7 @@ namespace pocketmine\network\protocol; - #include +#include #ifndef COMPILE use pocketmine\utils\Binary; diff --git a/src/pocketmine/network/protocol/DataPacket.php b/src/pocketmine/network/protocol/DataPacket.php index 6e595953d..d581530f2 100644 --- a/src/pocketmine/network/protocol/DataPacket.php +++ b/src/pocketmine/network/protocol/DataPacket.php @@ -21,7 +21,7 @@ namespace pocketmine\network\protocol; - #include +#include #ifndef COMPILE use pocketmine\utils\Binary; diff --git a/src/pocketmine/network/protocol/SetEntityDataPacket.php b/src/pocketmine/network/protocol/SetEntityDataPacket.php index 6b8aaecc1..23842fe23 100644 --- a/src/pocketmine/network/protocol/SetEntityDataPacket.php +++ b/src/pocketmine/network/protocol/SetEntityDataPacket.php @@ -21,7 +21,7 @@ namespace pocketmine\network\protocol; - #include +#include #ifndef COMPILE use pocketmine\utils\Binary;