mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Unnecessary arguments in the if expression
This commit is contained in:
parent
f9f4e65571
commit
4630481d54
9 changed files with 13 additions and 13 deletions
|
|
@ -152,7 +152,7 @@ class ServerAPI{
|
|||
//define("MAX_CHUNK_RATE", 20 / $this->getProperty("max-chunks-per-second", 8)); //Default rate ~512 kB/s
|
||||
MobSpawner::$spawnAnimals = $this->getProperty("spawn-animals");
|
||||
MobSpawner::$spawnMobs = $this->getProperty("spawn-mobs");
|
||||
if($this->getProperty("upnp-forwarding") == true){
|
||||
if($this->getProperty("upnp-forwarding")){
|
||||
console("[INFO] [UPnP] Trying to port forward...");
|
||||
UPnP_PortForward($this->getProperty("server-port"));
|
||||
}
|
||||
|
|
@ -245,7 +245,7 @@ class ServerAPI{
|
|||
|
||||
public function setProperty($name, $value, $save = true){
|
||||
$this->config->set($name, $value);
|
||||
if($save == true){
|
||||
if($save){
|
||||
$this->writeProperties();
|
||||
}
|
||||
$this->loadProperties();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue