public void update(double deltaTime) {
		super.update(deltaTime);
		if(facility1!=null)
			facility1.update(deltaTime);
		if(facility2!=null)
			facility2.update(deltaTime);
		timePassed+=deltaTime;
		if(((int)(timePassed/86400)) != timeRounded){ // every new day:
			timeRounded = (int)(timePassed/86400);
			for(Map.Entry<EnumResource, PlanetResource> entry : localResourcesList.entrySet()){// for each resource:
				if(entry.getValue().getGrowthRate()!=0){
					if(timeRounded%entry.getValue().getGrowthRate()==0) // if this day is a multiple of growthRate, add 1 to the resource:
						addResourceQuantity(entry.getValue().getResourceType(), 1);
				}
			}
		}
	}