mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Simplify player modification checks
This commit is contained in:
parent
b37bff72f1
commit
cd0df0d5e7
7 changed files with 30 additions and 48 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue