Merge branch '3.5'

# Conflicts:
#	resources/locale
This commit is contained in:
Dylan K. Taylor
2019-01-02 21:25:57 +00:00
2 changed files with 2 additions and 1 deletions

View File

@@ -2293,6 +2293,7 @@ class Server{
//Force minimum uptime to be >= 120 seconds, to reduce the impact of spammy crash loops
$spacing = ((int) \pocketmine\START_TIME) - time() + 120;
if($spacing > 0){
echo "--- Waiting $spacing seconds to throttle automatic restart (you can kill the process safely now) ---" . PHP_EOL;
sleep($spacing);
}
@Utils::kill(getmypid());