fix max players

This commit is contained in:
NOTPIES
2026-03-15 23:11:29 -03:00
parent 2b492ad8ce
commit db5a8c9089
4 changed files with 8 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ bool ServerProperties::load(const wstring& path)
difficulty = getInt(L"difficulty", 2);
maxPlayers = getInt(L"max-players", 8);
if (maxPlayers < 1) maxPlayers = 1;
if (maxPlayers > 32) maxPlayers = 32;
pvp = getBool(L"pvp", true);
trustPlayers = getBool(L"trust-players", true);
fireSpreads = getBool(L"fire-spreads", true);