mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 17:00:23 +02:00
Simplify player modification checks
This commit is contained in:
@ -449,11 +449,11 @@ Player *ServerEnvironment::loadPlayer(const std::string &playername)
|
||||
bool newplayer = false;
|
||||
bool found = false;
|
||||
if (!player) {
|
||||
player = new RemotePlayer(m_gamedef);
|
||||
player = new RemotePlayer(m_gamedef, playername.c_str());
|
||||
newplayer = true;
|
||||
}
|
||||
|
||||
RemotePlayer testplayer(m_gamedef);
|
||||
RemotePlayer testplayer(m_gamedef, "");
|
||||
std::string path = players_path + playername;
|
||||
for (u32 i = 0; i < PLAYER_FILE_ALTERNATE_TRIES; i++) {
|
||||
// Open file and deserialize
|
||||
|
Reference in New Issue
Block a user