Browse Source

login crash bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
69dd7bcc37
  1. 1
      src/engine/objects/PlayerCharacter.java
  2. 4
      src/engine/server/login/LoginServerMsgHandler.java

1
src/engine/objects/PlayerCharacter.java

@ -209,6 +209,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -209,6 +209,7 @@ public class PlayerCharacter extends AbstractCharacter {
this.guildStatus = new AtomicInteger(0);
this.buildingUUID = -1;
this.level = 10;
}
/**

4
src/engine/server/login/LoginServerMsgHandler.java

@ -351,10 +351,6 @@ public class LoginServerMsgHandler implements NetMsgHandler { @@ -351,10 +351,6 @@ public class LoginServerMsgHandler implements NetMsgHandler {
this.sendCharacterSelectScreen(session, true);
return;
}
pc.level = 10;
MobLoot conc = new MobLoot(pc, ItemBase.getItemBase(980066),false);
//player.getCharItemManager().addItemToInventory(conc);
pc.getCharItemManager().addItemToInventory(conc.promoteToItem(pc),1);
PlayerCharacter.initializePlayer(pc);
session.getAccount().characterMap.putIfAbsent(pc.getObjectUUID(), pc);
// Send back to Character Select Screen

Loading…
Cancel
Save