mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 19:09:46 +00:00
REMOVE: User class
This commit is contained in:
parent
2c132d5bc7
commit
5ff8b54c4f
9 changed files with 35 additions and 100 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "../../world/level/Level.h"
|
||||
#include "../../world/item/ItemInstance.h"
|
||||
#include "../player/LocalPlayer.h"
|
||||
#include "client/Options.h"
|
||||
#ifndef STANDALONE_SERVER
|
||||
#include "../sound/SoundEngine.h"
|
||||
#include "../particle/ParticleEngine.h"
|
||||
|
|
@ -27,7 +28,7 @@ GameMode::GameMode( Minecraft* minecraft)
|
|||
|
||||
/*virtual*/
|
||||
Player* GameMode::createPlayer(Level* level) {
|
||||
return new LocalPlayer(minecraft, level, minecraft->user, level->dimension->id, isCreativeType());
|
||||
return new LocalPlayer(minecraft, level, minecraft->options.getStringValue(OPTIONS_USERNAME), level->dimension->id, isCreativeType());
|
||||
}
|
||||
|
||||
/*virtual*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue