mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
added nullsafe function, time should be set instantly after player joined, some php8 fixes
This commit is contained in:
parent
695f9f1484
commit
a66176b75d
5 changed files with 41 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue