mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Revert "Fix settings to honor numeric conversion errors"
This reverts commit 3f376a092e
.
This commit is contained in:
@@ -1671,10 +1671,9 @@ int main(int argc, char *argv[])
|
||||
//infostream<<"Main: password hash: '"<<password<<"'"<<std::endl;
|
||||
|
||||
address = menudata.address;
|
||||
try {
|
||||
port = stoi(menudata.port);
|
||||
}
|
||||
catch (NumericException&e) {}
|
||||
int newport = stoi(menudata.port);
|
||||
if(newport != 0)
|
||||
port = newport;
|
||||
|
||||
simple_singleplayer_mode = menudata.simple_singleplayer_mode;
|
||||
|
||||
|
Reference in New Issue
Block a user