Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Feb 28, 2016
1 parent 3fdd5e8 commit 56069ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -69,7 +69,7 @@ public T get(Configuration config)
else if (defaultValue instanceof Integer)
return (T) Integer.valueOf(config.getInt(name, category, (Integer) defaultValue, (Integer) minValue, (Integer) maxValue, getComment()));
else if (defaultValue instanceof Float)
return (T) Float.valueOf((float) config.getFloat(name, category, (Float) defaultValue, (Float) minValue, (Float) maxValue, getComment()));
return (T) Float.valueOf(config.getFloat(name, category, (Float) defaultValue, (Float) minValue, (Float) maxValue, getComment()));
else if (defaultValue instanceof Double)
return (T) Double.valueOf(Math.min((Double) maxValue, Math.max((Double) minValue, getProperty(config).getDouble())));
else if (defaultValue instanceof String)
Expand Down
Expand Up @@ -36,7 +36,7 @@ public void getModifiedFoodValues(FoodEvent.GetFoodValues event)
float saturation = event.foodValues.saturationModifier;
if (IguanaConfig.foodHungerToSaturationDivider != 0)
{
saturation = hunger / (float) IguanaConfig.foodHungerToSaturationDivider;
saturation = hunger / IguanaConfig.foodHungerToSaturationDivider;
}
saturation /= IguanaConfig.foodSaturationDivider;
event.foodValues = new FoodValues(hunger, saturation);
Expand Down
@@ -1,5 +1,6 @@
package iguanaman.hungeroverhaul.util;

import iguanaman.hungeroverhaul.config.IguanaConfig;
import net.minecraft.block.Block;
import net.minecraft.world.World;

Expand Down

0 comments on commit 56069ed

Please sign in to comment.