|
|
|
@ -102,14 +102,15 @@ public class LoadCharacterMsg extends ClientNetMsg {
@@ -102,14 +102,15 @@ public class LoadCharacterMsg extends ClientNetMsg {
|
|
|
|
|
writer.putInt(region.getRoom()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (absChar.getObjectType().equals(GameObjectType.Mob)){ |
|
|
|
|
Regions Mobregion = absChar.getRegion(); |
|
|
|
|
Regions region = absChar.getRegion(); |
|
|
|
|
|
|
|
|
|
if (region == null){ |
|
|
|
|
writer.putInt(-1); |
|
|
|
|
writer.putInt(-1); |
|
|
|
|
}else{ |
|
|
|
|
Building regionBuilding = Regions.GetBuildingForRegion(Mobregion); |
|
|
|
|
Building regionBuilding = Regions.GetBuildingForRegion(region); |
|
|
|
|
if (regionBuilding == null){ |
|
|
|
|
writer.putInt(-1); |
|
|
|
|
writer.putInt(-1); |
|
|
|
|