Skip to content

Commit

Permalink
Fix Compile issues with the way I did chat text, and allow support fo…
Browse files Browse the repository at this point in the history
…r java 8
  • Loading branch information
alexbegt committed Sep 30, 2016
1 parent 794840b commit d500d52
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Expand Up @@ -53,6 +53,8 @@ repositories {
}

group = 'com.progwml6.natura'
sourceCompatibility = 1.8
targetCompatibility = 1.8

// define the properties file
ext.configFile = file "build.properties"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/progwml6/natura/common/NaturaPulse.java
Expand Up @@ -195,7 +195,7 @@ protected void addShapedRecipeFirst(List<IRecipe> recipeList, ItemStack itemstac

HashMap<Character, ItemStack> var12;

for (var12 = new HashMap<>(); var4 < objArray.length; var4 += 2)
for (var12 = new HashMap<Character, ItemStack>(); var4 < objArray.length; var4 += 2)
{
Character var13 = (Character) objArray[var4];
ItemStack var14 = null;
Expand Down
Expand Up @@ -15,7 +15,7 @@ public class ItemEdibleSoup extends ItemNaturaEdible
public ItemEdibleSoup()
{
super();
this.bowlsList = new TIntObjectHashMap<>();
this.bowlsList = new TIntObjectHashMap<ItemStack>();
}

public ItemStack addFood(int meta, int food, float saturation, String name, ItemStack bowl, PotionEffect... effects)
Expand Down
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.util.text.translation.I18n;
import slimeknights.mantle.item.ItemEdible;

Expand Down Expand Up @@ -32,11 +33,11 @@ public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String>
{
if (potionEffect.getPotion().isBadEffect())
{
tooltip.add("§4" + I18n.translateToLocal(potionEffect.getEffectName()).trim());
tooltip.add(TextFormatting.RED + I18n.translateToLocal(potionEffect.getEffectName()).trim());
}
else
{
tooltip.add("§9" + I18n.translateToLocal(potionEffect.getEffectName()).trim());
tooltip.add(TextFormatting.BLUE + I18n.translateToLocal(potionEffect.getEffectName()).trim());
}
}
}
Expand Down

0 comments on commit d500d52

Please sign in to comment.