From 3daa2723bfc13b3849f89138a0d6dd1301ba2dd0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Jan 2017 09:42:07 +0000 Subject: [PATCH 1/3] Bump to 7 entries per page (matches MCPE) --- src/pocketmine/command/defaults/HelpCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/command/defaults/HelpCommand.php b/src/pocketmine/command/defaults/HelpCommand.php index b75205fa43..bf64a24a2f 100644 --- a/src/pocketmine/command/defaults/HelpCommand.php +++ b/src/pocketmine/command/defaults/HelpCommand.php @@ -61,7 +61,7 @@ class HelpCommand extends VanillaCommand{ if($sender instanceof ConsoleCommandSender){ $pageHeight = PHP_INT_MAX; }else{ - $pageHeight = 5; + $pageHeight = 7; } if($command === ""){ @@ -103,4 +103,4 @@ class HelpCommand extends VanillaCommand{ } } -} \ No newline at end of file +} From 39c3b16e49326802c289fb139f6ea0d950140783 Mon Sep 17 00:00:00 2001 From: xFlare Date: Thu, 12 Jan 2017 10:38:30 -0500 Subject: [PATCH 2/3] Micro optimization (#252) --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 3cfd623297..188395d013 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1908,7 +1908,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade $this->forceMovement = new Vector3($this->x, $this->y, $this->z); } - if($this->forceMovement instanceof Vector3 and (($dist = $newPos->distanceSquared($this->forceMovement)) > 0.1 or $revert)){ + if($this->forceMovement instanceof Vector3 and ($newPos->distanceSquared($this->forceMovement) > 0.1 or $revert)){ $this->sendPosition($this->forceMovement, $packet->yaw, $packet->pitch); }else{ $packet->yaw %= 360; From 8bf8e2e22f633770f93463e834554e6412a4db73 Mon Sep 17 00:00:00 2001 From: xFlare Date: Fri, 20 Jan 2017 05:52:35 -0500 Subject: [PATCH 3/3] Moved crashdumps to their own folder (#275) --- src/pocketmine/CrashDump.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/CrashDump.php b/src/pocketmine/CrashDump.php index 96ebccb667..03faac63a0 100644 --- a/src/pocketmine/CrashDump.php +++ b/src/pocketmine/CrashDump.php @@ -41,7 +41,10 @@ class CrashDump{ public function __construct(Server $server){ $this->time = time(); $this->server = $server; - $this->path = $this->server->getDataPath() . "CrashDump_" . date("D_M_j-H.i.s-T_Y", $this->time) . ".log"; + if(!is_dir($this->server->getDataPath()) . "crashdumps"){ + mkdir($this->server->getDataPath() . "crashdumps"); + } + $this->path = $this->server->getDataPath() . "crashdumps/" . date("D_M_j-H.i.s-T_Y", $this->time) . ".log"; $this->fp = @fopen($this->path, "wb"); if(!is_resource($this->fp)){ throw new \RuntimeException("Could not create Crash Dump");