Floor and level no longer read from db.

This commit is contained in:
MagicBot committed 2023-04-29 10:59:13 -04:00
1 parent 5729492c6a
commit b73c8e9045
2 files changed
+6 -27

No files matched your search

@@ -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);
}