gatheredCO2 = theEnvironment.getCO2Store().take(theCO2Percentage * molesAirNeeded);
gatheredCO2 = theEnvironment.getCO2Store().take(molesAirNeeded * theCO2Percentage); myLogger.debug("gatheredCO2 = "+gatheredCO2); myLogger.debug("currentPowerConsumed = "+currentPowerConsumed);
    private void gatherCO2() {        //25.625 watts -> 1.2125 moles of Air        float molesAirNeeded = (currentPowerConsumed / 25.625f) * 1.2125f  * getTickLength();        SimEnvironment theEnvironment = myAirConsumerDefinitionImpl.getEnvironments()[0];        float theCO2Percentage = theEnvironment.getCO2Store().getCurrentLevel() / theEnvironment.getTotalMoles();        //gather CO2        gatheredCO2 = theEnvironment.getCO2Store().take(theCO2Percentage * molesAirNeeded);    }