Skip to content

Commit

Permalink
Remove Error Message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nedelosk committed Sep 9, 2017
1 parent f4d0979 commit 5df7b92
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/forestry/greenhouse/climate/ClimateSource.java
Expand Up @@ -19,7 +19,6 @@
import forestry.api.climate.ClimateType;
import forestry.api.climate.IClimateState;
import forestry.core.climate.ClimateStates;
import forestry.core.utils.Log;
import forestry.greenhouse.api.climate.IClimateContainer;
import forestry.greenhouse.api.climate.IClimateSource;
import forestry.greenhouse.api.climate.IClimateSourceOwner;
Expand Down Expand Up @@ -174,17 +173,13 @@ public final IClimateState work(IClimateState previousState, IClimateState targe
change = ClimateStates.extendedZero();
}
}
state.add(change.scale(1 / sizeModifier));
state = state.add(change.scale(1 / sizeModifier));
if (ClimateStates.isZero(state) || ClimateStates.isNearZero(state)) {
state = ClimateStates.extendedZero();
}
if (false) {
state = ClimateStates.extendedZero();
}
if (!state.isPresent()) {
state = ClimateStates.extendedZero();
Log.error("Failed to update a climate source. Please report this to the authors of the mod. Previous={}, Target={}, Current={}, Size={}", previousState, targetState, currentState, sizeModifier);
}
setState(state);
return change;
}
Expand Down

0 comments on commit 5df7b92

Please sign in to comment.