mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Simplify player modification checks
This commit is contained in:
@@ -270,9 +270,7 @@ Client::Client(
|
||||
Add local player
|
||||
*/
|
||||
{
|
||||
Player *player = new LocalPlayer(this);
|
||||
|
||||
player->updateName(playername);
|
||||
Player *player = new LocalPlayer(this, playername);
|
||||
|
||||
m_env.addPlayer(player);
|
||||
}
|
||||
|
Reference in New Issue
Block a user