mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 05:44:36 +01:00
Refactor some code in the player constructor
This commit is contained in:
@@ -99,12 +99,11 @@ public class Player {
|
||||
// Setup hero paths
|
||||
this.getAvatars().setupHeroPaths();
|
||||
|
||||
// Give us a starter character.
|
||||
// Give us a starter character and add it to our main lineup.
|
||||
// TODO script tutorial
|
||||
GameAvatar avatar = new GameAvatar(this.getCurHeroPath());
|
||||
|
||||
this.getAvatars().addAvatar(avatar);
|
||||
this.getLineupManager().getCurrentLineup().getAvatars().add(8001);
|
||||
this.getLineupManager().getCurrentLineup().getAvatars().add(avatar.getAvatarId());
|
||||
}
|
||||
|
||||
public GameServer getServer() {
|
||||
|
||||
Reference in New Issue
Block a user