Server: fixed default difficulty being EASY instead of NORMAL

This commit is contained in:
Dylan K. Taylor 2019-10-16 11:45:30 +01:00
parent aeeee5eb53
commit d9eac8fc0a

View File

@ -593,7 +593,7 @@ class Server{
* @return int
*/
public function getDifficulty() : int{
return $this->getConfigInt("difficulty", 1);
return $this->getConfigInt("difficulty", Level::DIFFICULTY_NORMAL);
}
/**
@ -1529,7 +1529,7 @@ class Server{
"force-gamemode" => false,
"hardcore" => false,
"pvp" => true,
"difficulty" => 1,
"difficulty" => Level::DIFFICULTY_NORMAL,
"generator-settings" => "",
"level-name" => "world",
"level-seed" => "",