Strip trailing whitespace

This commit is contained in:
Dylan K. Taylor 2021-03-28 19:02:51 +01:00
parent 3b3fb5e662
commit e42a691da9
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
4 changed files with 4 additions and 4 deletions

View File

@ -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"');

View File

@ -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()){

View File

@ -244,7 +244,7 @@ abstract class UPnP{
'<?xml version="1.0"?>' .
'<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">' .
'<s:Body>' . $body . '</s:Body></s:Envelope>';
$headers = [
'Content-Type: text/xml',
'SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping"'

View File

@ -221,7 +221,7 @@ LICENSE;
$config->save();
}
private function printIpDetails() : void{
$this->message($this->lang->get("ip_get"));