@SuppressWarnings("resource")
	public void loadPak(File file, boolean spawnPlayer){
		pakFile = file;
		String thisfile = "properties";
		try {
			ZipFile zipFile = new ZipFile(file);
			ZipEntry zipEntry = zipFile.getEntry(thisfile);
			InputStream in = zipFile.getInputStream(zipEntry);
			BufferedReader input = new BufferedReader(new InputStreamReader(in));
			propReader(input);
		} catch (ZipException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		try {
			eio.loadPakData(file);
		} catch (IOException e) {
			e.printStackTrace();
		}
		if(spawnPlayer){
			boolean playerExists=false;
			for(Entity e: eio.entities){
				if(e instanceof Creature){
					Creature c = (Creature)e;
					if(c.name.equals(Molybdenum.settings.PLAYER_NAME)){
						playerExists=true;
					}
				}
			}
			if(playerExists){
				((GameState)Molybdenum.getStateManager().getState(StateManager.GAMESTATE)).em.setEntities(eio.entities);
				Molybdenum.getStateManager().setState(StateManager.GAMESTATE);
			}else{
				spawnPlayer();
			}
		}
		
	}