public void update(double deltaTime){
		//if resources available, take them and start production. start timer
		//once time is up, produce the resource and repeat the loop
		if(!producing){
			producing = true;
			for(EnumResource resource : inputs){
				if(location.getPlanetResource(resource).getQuantity()<=0)//if there is not enough resource, the facility can't start producing
					producing = false;
			}
			if(producing){//if the planet has started producing, remove resources:
				for(EnumResource resource : inputs){
					location.subtractResourceQuantity(resource, 1);
				}
			}
		}else{
			timePassed+=deltaTime;
			if(timePassed>productionTime*86400){//if enough time has passed to produce a resource, produce it and credit owner's account for 10% base cost of resource:
				location.addResourceQuantity(output, 1);
				owner.incrementBalance(MainGame.resourcesMap.get(output).getBasePrice()*0.10f);
				timePassed=0;
				producing=false;
			}
		}
	}