mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Simplify player modification checks
This commit is contained in:
parent
b37bff72f1
commit
cd0df0d5e7
7 changed files with 30 additions and 48 deletions
|
@ -5038,8 +5038,7 @@ PlayerSAO* Server::emergePlayer(const char *name, u16 peer_id)
|
|||
// Create player if it doesn't exist
|
||||
if (!player) {
|
||||
newplayer = true;
|
||||
player = new RemotePlayer(this);
|
||||
player->updateName(name);
|
||||
player = new RemotePlayer(this, name);
|
||||
/* Set player position */
|
||||
infostream<<"Server: Finding spawn place for player \""
|
||||
<<name<<"\""<<std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue