Skip to content

Commit

Permalink
📝 Fixed config defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Lygaen committed Feb 11, 2024
1 parent fc94311 commit da6fdd3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ class Config
*
* The compression level to use with ZLib when
* compressing packets.
* Use -1 for default level. 0 means no compression,
* 9 means full compression.
*/
Field<int> COMPRESSION_LVL = Field("network", "compression_level", -1);
/**
Expand All @@ -175,7 +177,7 @@ class Config
* If a packet exceed the compression threshold, it will get
* compressed.
*/
Field<int> COMPRESSION_THRESHOLD = Field("network", "compression_threshold", 128);
Field<int> COMPRESSION_THRESHOLD = Field("network", "compression_threshold", 256);
/**
* @brief The online mode flag
*
Expand Down Expand Up @@ -208,14 +210,14 @@ class Config
* will hold before accepting them. There should
* not be really any need to crank up that number.
*/
Field<int> BACKLOG = Field("network", "backlog", 100);
Field<int> BACKLOG = Field("network", "backlog", 10);
/**
* @brief The Message of the Day
*
* The message of the day to be displayed
* on a status update.
*/
Field<ChatMessage> MOTD = Field("display", "motd", ChatMessage("This is the message of the day !"));
Field<ChatMessage> MOTD = Field("display", "motd", ChatMessage("This is a minecraft server"));
/**
* @brief Max Players
*
Expand All @@ -236,7 +238,7 @@ class Config
* The icon file that is sent to the server
* while pinging.
*/
Field<PNGFile> ICON_FILE = Field("display", "icon_file", PNGFile());
Field<PNGFile> ICON_FILE = Field("display", "icon_file", PNGFile("./icon.png"));

/**
* @brief List of all the config fields
Expand Down

0 comments on commit da6fdd3

Please sign in to comment.