mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09: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
|
|
@ -376,7 +376,7 @@ class Level{
|
|||
if(count($this->players) == 0) return false;
|
||||
if($this->server->api->time->getPhase($this) === "night"){ //TODO vanilla
|
||||
foreach($this->players as $p){
|
||||
if($p->isSleeping == false || $p->sleepingTime < 100){
|
||||
if(!$p->isSleeping || $p->sleepingTime < 100){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -906,7 +906,7 @@ class Level{
|
|||
return false;
|
||||
}
|
||||
$now = microtime(true);
|
||||
if($this->stopTime == true){
|
||||
if($this->stopTime){
|
||||
$time = $this->startTime;
|
||||
}else{
|
||||
$time = $this->startTime + ($now - $this->startCheck) * 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue