public static Level Convert(String file) throws IOException {
		String name = new File(file).getName().split("\\.")[0];
		DatToGGS newlvl = new DatToGGS();
		newlvl.load(file);
		Level lvl = new Level((short)newlvl.level.width, (short)newlvl.level.height, (short)newlvl.level.height);
		int[] cords = new int[3];
		for (int i = 0; i < newlvl.level.blocks.length; i++) {
			cords = newlvl.getCoords(i);
			try {
				lvl.blocks[lvl.PosToInt(cords[0], cords[1], cords[2])] = Block.getBlock(newlvl.level.blocks[i]);
			} catch (Exception e) {
				System.out.println(i + "= " + cords[0] + ":" + cords[1] + ":" + cords[2]);
			}
		}
		lvl.name = name;
		lvl.Save();
		return lvl;
	}