From 8b6681c56d5465a4ffba8e78ca02d7b073d779ae Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 7 Dec 2014 22:05:45 +0100 Subject: [PATCH] FIxed some preprocessor includes --- src/pocketmine/command/CommandReader.php | 2 +- src/pocketmine/network/protocol/AddMobPacket.php | 2 +- src/pocketmine/network/protocol/AddPlayerPacket.php | 2 +- src/pocketmine/network/protocol/DataPacket.php | 2 +- src/pocketmine/network/protocol/SetEntityDataPacket.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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;