mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Server: fixed default difficulty being EASY instead of NORMAL
This commit is contained in:
parent
aeeee5eb53
commit
d9eac8fc0a
@ -593,7 +593,7 @@ class Server{
|
|||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getDifficulty() : 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,
|
"force-gamemode" => false,
|
||||||
"hardcore" => false,
|
"hardcore" => false,
|
||||||
"pvp" => true,
|
"pvp" => true,
|
||||||
"difficulty" => 1,
|
"difficulty" => Level::DIFFICULTY_NORMAL,
|
||||||
"generator-settings" => "",
|
"generator-settings" => "",
|
||||||
"level-name" => "world",
|
"level-name" => "world",
|
||||||
"level-seed" => "",
|
"level-seed" => "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user