mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Cleaned up bool comparison mess
This commit is contained in:
@ -31,7 +31,7 @@ use pocketmine\utils\Utils;
|
||||
abstract class UPnP{
|
||||
|
||||
public static function PortForward(int $port) : bool{
|
||||
if(Utils::$online === false){
|
||||
if(!Utils::$online){
|
||||
return false;
|
||||
}
|
||||
if(Utils::getOS() != "win" or !class_exists("COM")){
|
||||
@ -56,7 +56,7 @@ abstract class UPnP{
|
||||
}
|
||||
|
||||
public static function RemovePortForward(int $port) : bool{
|
||||
if(Utils::$online === false){
|
||||
if(!Utils::$online){
|
||||
return false;
|
||||
}
|
||||
if(Utils::getOS() != "win" or !class_exists("COM")){
|
||||
|
Reference in New Issue
Block a user