From e42a691da94d667f0367cedc17775cf20e081990 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 28 Mar 2021 19:02:51 +0100 Subject: [PATCH] Strip trailing whitespace --- build/make-release.php | 2 +- src/pocketmine/Player.php | 2 +- src/pocketmine/network/upnp/UPnP.php | 2 +- src/pocketmine/wizard/SetupWizard.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/make-release.php b/build/make-release.php index 2cb13f169..d499ff3f6 100644 --- a/build/make-release.php +++ b/build/make-release.php @@ -71,7 +71,7 @@ function main(array $argv) : void{ $versionInfoPath = dirname(__DIR__) . '/src/pocketmine/VersionInfo.php'; replaceVersion($versionInfoPath, $currentVer->getBaseVersion(), false); - + echo "please add appropriate notes to the changelog and press enter..."; fgets(STDIN); system('git add "' . dirname(__DIR__) . '/changelogs"'); diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 9a4a49841..2237ac36d 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2936,7 +2936,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->inventory->sendHeldItem($this); break; } - + $tile = $this->level->getTile($pos); if($tile instanceof ItemFrame and $tile->hasItem()){ if (lcg_value() <= $tile->getItemDropChance()){ diff --git a/src/pocketmine/network/upnp/UPnP.php b/src/pocketmine/network/upnp/UPnP.php index 54d5a824c..b1e99e013 100644 --- a/src/pocketmine/network/upnp/UPnP.php +++ b/src/pocketmine/network/upnp/UPnP.php @@ -244,7 +244,7 @@ abstract class UPnP{ '' . '' . '' . $body . ''; - + $headers = [ 'Content-Type: text/xml', 'SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping"' diff --git a/src/pocketmine/wizard/SetupWizard.php b/src/pocketmine/wizard/SetupWizard.php index 998080ad3..782005bc2 100644 --- a/src/pocketmine/wizard/SetupWizard.php +++ b/src/pocketmine/wizard/SetupWizard.php @@ -221,7 +221,7 @@ LICENSE; $config->save(); } - + private function printIpDetails() : void{ $this->message($this->lang->get("ip_get"));