added nullsafe function, time should be set instantly after player joined, some php8 fixes

This commit is contained in:
GameHerobrine 2023-01-30 17:20:23 +03:00
parent 695f9f1484
commit a66176b75d
5 changed files with 41 additions and 22 deletions

View file

@ -516,7 +516,11 @@ class Level{
$this->time -= 20 * 13;
}
}
public function isTimeStopped(){
return $this->stopTime;
}
public function stopTime(){
$this->stopTime = true;
$this->startCheck = 0;