Floor and level no longer read from db.

This commit is contained in:
2023-04-29 10:59:13 -04:00
parent 5729492c6a
commit b73c8e9045
2 changed files with 6 additions and 27 deletions
@@ -71,14 +71,13 @@ public class LoadCharacterMsg extends ClientNetMsg {
protected void _serialize(ByteBufferWriter writer) throws SerializationException {
if (absChar != null && absChar.getObjectType() == GameObjectType.NPC) {
NPC npc = (NPC)absChar;
NPC npc = (NPC) absChar;
if (npc.getBuilding() != null){
writer.putInt(npc.getBuildingLevel());
writer.putInt(npc.getBuildingFloor());
}else{
if (npc.getRegion() != null) {
writer.putInt(npc.getRegion().getLevel());
writer.putInt(npc.getRegion().getRoom());
} else {
writer.putInt(-1);
writer.putInt(-1);
}